From 722636eb224bf85a0812c4dd9fa1c5789f0493a8 Mon Sep 17 00:00:00 2001 From: tatiana Date: Thu, 4 Feb 2010 16:57:01 +0000 Subject: [PATCH] FIX: Error when pressing enter in frame after opening project (under darwin and win32) --- invesalius/gui/import_panel.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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