[GRASS-SVN] r56799 - grass/trunk/gui/wxpython/psmap

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jun 19 07:42:58 PDT 2013


Author: annakrat
Date: 2013-06-19 07:42:58 -0700 (Wed, 19 Jun 2013)
New Revision: 56799

Modified:
   grass/trunk/gui/wxpython/psmap/frame.py
Log:
wxGUI/composer: fix #2003

Modified: grass/trunk/gui/wxpython/psmap/frame.py
===================================================================
--- grass/trunk/gui/wxpython/psmap/frame.py	2013-06-19 14:42:23 UTC (rev 56798)
+++ grass/trunk/gui/wxpython/psmap/frame.py	2013-06-19 14:42:58 UTC (rev 56799)
@@ -366,7 +366,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 = []
@@ -1080,6 +1080,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