From dab3ed36917274f1e28606e141524a6d501e6353 Mon Sep 17 00:00:00 2001 From: tfmoraes Date: Mon, 25 Jan 2010 16:11:45 +0000 Subject: [PATCH] FIX: The cancel in dicom import is working --- invesalius/gui/dialogs.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/invesalius/gui/dialogs.py b/invesalius/gui/dialogs.py index 8cf76c7..c22f9ec 100644 --- a/invesalius/gui/dialogs.py +++ b/invesalius/gui/dialogs.py @@ -112,12 +112,11 @@ class ProgressDialog(object): def Update(self, value, message): if(int(value) != self.maximum): try: - self.dlg.Update(value,message) + return self.dlg.Update(value,message) #TODO: #Exception in the Windows XP 64 Bits with wxPython 2.8.10 except(wx._core.PyAssertionError): - pass - return True + return True else: return False -- libgit2 0.21.2