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

fix superposition dialog unnamed chains

parent 5899cf05
Branches
Tags
No related merge requests found
......@@ -60,7 +60,7 @@ class ChainComboBox(QComboBox):
def _HighlightChain(self, chain):
if str(chain) != 'All':
self.gfx.SetSelection(self.entity.Select('cname=' + str(chain)))
self.gfx.SetSelection(self.entity.Select('cname="%s"' % str(chain)))
else:
self.gfx.SetSelection(self.entity.Select(''))
......@@ -69,7 +69,7 @@ class ChainComboBox(QComboBox):
return mol.EntityHandle()
elif self.currentText() == self.all_chains:
return self.entity
return self.entity.Select('cname=' + str(self.currentText()))
return self.entity.Select('cname="%s"' % str(self.currentText()))
def _SetSelectedChain(self, chain):
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