Commit 722636eb224bf85a0812c4dd9fa1c5789f0493a8
1 parent
d0e768b2
Exists in
master
and in
6 other branches
FIX: Error when pressing enter in frame after opening project (under darwin and win32)
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
invesalius/gui/import_panel.py
@@ -163,7 +163,8 @@ class InnerPanel(wx.Panel): | @@ -163,7 +163,8 @@ class InnerPanel(wx.Panel): | ||
163 | 163 | ||
164 | def OnClickOk(self, evt): | 164 | def OnClickOk(self, evt): |
165 | group = self.text_panel.GetSelection() | 165 | group = self.text_panel.GetSelection() |
166 | - self.LoadDicom(group) | 166 | + if group: |
167 | + self.LoadDicom(group) | ||
167 | 168 | ||
168 | def OnClickCancel(self, evt): | 169 | def OnClickCancel(self, evt): |
169 | ps.Publisher().sendMessage("Cancel DICOM load") | 170 | ps.Publisher().sendMessage("Cancel DICOM load") |