[GRASS-SVN] r56812 - grass/branches/develbranch_6/gui/wxpython/psmap

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jun 20 01:16:31 PDT 2013


Author: annakrat
Date: 2013-06-20 01:16:30 -0700 (Thu, 20 Jun 2013)
New Revision: 56812

Modified:
   grass/branches/develbranch_6/gui/wxpython/psmap/frame.py
Log:
wxGUI/composer: fix #2003 (merge from trunk, r56799)

Modified: grass/branches/develbranch_6/gui/wxpython/psmap/frame.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/psmap/frame.py	2013-06-20 08:11:50 UTC (rev 56811)
+++ grass/branches/develbranch_6/gui/wxpython/psmap/frame.py	2013-06-20 08:16:30 UTC (rev 56812)
@@ -368,7 +368,7 @@
         if event.userData['temp']:
             grass.try_remove(event.userData['filename'])
             
-        wx.CallLater(4000, lambda: self.SetStatusText("", 0))
+        self.delayedCall = wx.CallLater(4000, lambda: self.SetStatusText("", 0))
 
     def getFile(self, wildcard):
         suffix = []
@@ -1067,6 +1067,8 @@
         except OSError:
             pass
         grass.set_raise_on_error(False)
+        if hasattr(self, 'delayedCall') and self.delayedCall.IsRunning():
+            self.delayedCall.Stop()
         self.Destroy()
 
 



More information about the grass-commit mailing list