Commit 722636eb224bf85a0812c4dd9fa1c5789f0493a8
1 parent
d0e768b2
Exists in
master
and in
68 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 | 163 | |
164 | 164 | def OnClickOk(self, evt): |
165 | 165 | group = self.text_panel.GetSelection() |
166 | - self.LoadDicom(group) | |
166 | + if group: | |
167 | + self.LoadDicom(group) | |
167 | 168 | |
168 | 169 | def OnClickCancel(self, evt): |
169 | 170 | ps.Publisher().sendMessage("Cancel DICOM load") | ... | ... |