diff --git a/invesalius/gui/import_panel.py b/invesalius/gui/import_panel.py index e23d256..a47e637 100644 --- a/invesalius/gui/import_panel.py +++ b/invesalius/gui/import_panel.py @@ -163,7 +163,8 @@ class InnerPanel(wx.Panel): def OnClickOk(self, evt): group = self.text_panel.GetSelection() - self.LoadDicom(group) + if group: + self.LoadDicom(group) def OnClickCancel(self, evt): ps.Publisher().sendMessage("Cancel DICOM load") -- libgit2 0.21.2