Skip to content
Snippets Groups Projects
Commit f68f5966 authored by Bienchen's avatar Bienchen
Browse files

Fixed a minor bug in the superposition dialog auto selection

parent 586151ee
No related branches found
No related tags found
No related merge requests found
...@@ -41,6 +41,10 @@ class ChainComboBox(QComboBox): ...@@ -41,6 +41,10 @@ class ChainComboBox(QComboBox):
SIGNAL('highlighted (const QString&)'), SIGNAL('highlighted (const QString&)'),
self._HighlightChain) self._HighlightChain)
def focusOutEvent (self, event):
if self.gfx:
self.gfx.SetSelection(self.entity.Select('cname=All'))
def SetItems(self, ent, gfx): def SetItems(self, ent, gfx):
self.clear() self.clear()
self.entity = ent self.entity = ent
...@@ -76,9 +80,6 @@ class ChainComboBox(QComboBox): ...@@ -76,9 +80,6 @@ class ChainComboBox(QComboBox):
break break
selected_chain = property(_GetSelectedChain, _SetSelectedChain) selected_chain = property(_GetSelectedChain, _SetSelectedChain)
def focusOutEvent (self, event):
self.gfx.SetSelection(self.entity.Select('cname=All'))
class SuperpositionDialog(QDialog): class SuperpositionDialog(QDialog):
""" """
Provides a graphical user interface to structurally superpose two entities. Provides a graphical user interface to structurally superpose two entities.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment