Skip to content
Snippets Groups Projects
Commit b5503bf7 authored by Paul McCarthy's avatar Paul McCarthy
Browse files

Minor update to LookupTable create label list logic.

parent 2e7af957
No related branches found
No related tags found
No related merge requests found
......@@ -243,16 +243,17 @@ class LookupTablePanel(fslpanel.FSLEyesPanel):
def addLabel(labelIdx):
# A new request to re-create the list has
# been made - cancel this creation chain.
if self.__labelListCreateKey != myCreateKey:
return
# If the user closes this panel while the
# label list is being created, wx will
# complain when we try to append things
# to a widget that has been destroyed.
try:
# A new request to re-create the list has
# been made - cancel this creation chain.
if self.__labelListCreateKey != myCreateKey:
return
label = lut.labels[labelIdx]
widget = LabelWidget(self, lut, label.value())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment