[GRASS-SVN] r33258 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Sep 4 11:06:23 EDT 2008


Author: martinl
Date: 2008-09-04 11:06:23 -0400 (Thu, 04 Sep 2008)
New Revision: 33258

Modified:
   grass/trunk/gui/wxpython/gui_modules/goutput.py
Log:
wxGUI: bug fix -- trac #281 (query tool crashes when the user presses mouse buttons fast)
(merge from devbr6, r33257)


Modified: grass/trunk/gui/wxpython/gui_modules/goutput.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/goutput.py	2008-09-04 15:04:50 UTC (rev 33257)
+++ grass/trunk/gui/wxpython/gui_modules/goutput.py	2008-09-04 15:06:23 UTC (rev 33258)
@@ -83,12 +83,15 @@
 
             self.resultQ.put((requestId, self.requestCmd.run()))
 
-            event = wxCmdDone(aborted=self.requestCmd.aborted,
+            try:
+                aborted = self.requestCmd.aborted
+            except AttributeError:
+                aborted = False
+            
+            event = wxCmdDone(aborted=aborted,
                               time=requestTime,
                               pid=requestId)
-
-            time.sleep(.1)
-
+            
             wx.PostEvent(self.parent, event)
 
     def abort(self):



More information about the grass-commit mailing list