Skip to content
Snippets Groups Projects
Commit 09ac45fb authored by Marco Biasini's avatar Marco Biasini
Browse files

fix superposition dialog unnamed chains

parent e9c6f468
Branches
Tags
No related merge requests found
...@@ -60,7 +60,7 @@ class ChainComboBox(QComboBox): ...@@ -60,7 +60,7 @@ class ChainComboBox(QComboBox):
def _HighlightChain(self, chain): def _HighlightChain(self, chain):
if str(chain) != 'All': if str(chain) != 'All':
self.gfx.SetSelection(self.entity.Select('cname=' + str(chain))) self.gfx.SetSelection(self.entity.Select('cname="%s"' % str(chain)))
else: else:
self.gfx.SetSelection(self.entity.Select('')) self.gfx.SetSelection(self.entity.Select(''))
...@@ -69,7 +69,7 @@ class ChainComboBox(QComboBox): ...@@ -69,7 +69,7 @@ class ChainComboBox(QComboBox):
return mol.EntityHandle() return mol.EntityHandle()
elif self.currentText() == self.all_chains: elif self.currentText() == self.all_chains:
return self.entity return self.entity
return self.entity.Select('cname=' + str(self.currentText())) return self.entity.Select('cname="%s"' % str(self.currentText()))
def _SetSelectedChain(self, chain): def _SetSelectedChain(self, chain):
if hasattr(chain, 'name'): if hasattr(chain, 'name'):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment