Skip to content

Commit

Permalink
BUG: Fixed regression due to timer event processing during startup
Browse files Browse the repository at this point in the history
  • Loading branch information
lassoan committed Feb 13, 2018
1 parent dfd45b9 commit b2b6a2b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion SegmentEditorFastMarching/SegmentEditorFastMarching.py
Expand Up @@ -20,7 +20,7 @@ def __init__(self, parent):
self.parent.helpText = "This hidden module registers the segment editor effect"
self.parent.helpText += self.getDefaultModuleDocumentationLink()
self.parent.acknowledgementText = "Supported by NA-MIC, NAC, BIRN, NCIGT, and the Slicer Community. See http://www.slicer.org for details."
qt.QTimer.singleShot(0, self.registerEditorEffect)
slicer.app.connect("startupCompleted()", self.registerEditorEffect)

def registerEditorEffect(self):
import qSlicerSegmentationsEditorEffectsPythonQt as qSlicerSegmentationsEditorEffects
Expand Down
2 changes: 1 addition & 1 deletion SegmentEditorFloodFilling/SegmentEditorFloodFilling.py
Expand Up @@ -20,7 +20,7 @@ def __init__(self, parent):
self.parent.helpText = "This hidden module registers the segment editor effect"
self.parent.helpText += self.getDefaultModuleDocumentationLink()
self.parent.acknowledgementText = "Supported by NA-MIC, NAC, BIRN, NCIGT, and the Slicer Community. See http://www.slicer.org for details."
qt.QTimer.singleShot(0, self.registerEditorEffect)
slicer.app.connect("startupCompleted()", self.registerEditorEffect)

def registerEditorEffect(self):
import qSlicerSegmentationsEditorEffectsPythonQt as qSlicerSegmentationsEditorEffects
Expand Down
2 changes: 1 addition & 1 deletion SegmentEditorMaskVolume/SegmentEditorMaskVolume.py
Expand Up @@ -20,7 +20,7 @@ def __init__(self, parent):
self.parent.helpText = "This hidden module registers the segment editor effect"
self.parent.helpText += self.getDefaultModuleDocumentationLink()
self.parent.acknowledgementText = "Supported by NA-MIC, NAC, BIRN, NCIGT, and the Slicer Community. See http://www.slicer.org for details."
qt.QTimer.singleShot(0, self.registerEditorEffect)
slicer.app.connect("startupCompleted()", self.registerEditorEffect)

def registerEditorEffect(self):
import qSlicerSegmentationsEditorEffectsPythonQt as qSlicerSegmentationsEditorEffects
Expand Down
2 changes: 1 addition & 1 deletion SegmentEditorSurfaceCut/SegmentEditorSurfaceCut.py
Expand Up @@ -18,7 +18,7 @@ def __init__(self, parent):
self.parent.helpText += self.getDefaultModuleDocumentationLink()
self.parent.acknowledgementText = "Supported by NA-MIC, NAC, BIRN, NCIGT, and the Slicer Community. " \
"See http://www.slicer.org for details."
qt.QTimer.singleShot(0, self.registerEditorEffect)
slicer.app.connect("startupCompleted()", self.registerEditorEffect)

def registerEditorEffect(self):
import qSlicerSegmentationsEditorEffectsPythonQt as qSlicerSegmentationsEditorEffects
Expand Down
2 changes: 1 addition & 1 deletion SegmentEditorWatershed/SegmentEditorWatershed.py
Expand Up @@ -20,7 +20,7 @@ def __init__(self, parent):
self.parent.helpText = "This hidden module registers the segment editor effect"
self.parent.helpText += self.getDefaultModuleDocumentationLink()
self.parent.acknowledgementText = "Supported by NA-MIC, NAC, BIRN, NCIGT, and the Slicer Community. See http://www.slicer.org for details."
qt.QTimer.singleShot(0, self.registerEditorEffect)
slicer.app.connect("startupCompleted()", self.registerEditorEffect)

def registerEditorEffect(self):
import qSlicerSegmentationsEditorEffectsPythonQt as qSlicerSegmentationsEditorEffects
Expand Down

0 comments on commit b2b6a2b

Please sign in to comment.