Commit 73ddbb087acfb4f22b6e15378070986ca8423cee
1 parent
02945c93
Exists in
master
brain segmentation dialog was not being closed if a segmentation was not made
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
invesalius/gui/brain_seg_dialog.py
... | ... | @@ -166,7 +166,8 @@ class BrainSegmenterDialog(wx.Dialog): |
166 | 166 | # self.btn_stop.Disable() |
167 | 167 | self.btn_segment.Enable() |
168 | 168 | # self.progress.SetValue(0) |
169 | - self.pg_dialog.Destroy() | |
169 | + if self.pg_dialog is not None: | |
170 | + self.pg_dialog.Destroy() | |
170 | 171 | self.Destroy() |
171 | 172 | |
172 | 173 | ... | ... |