[GRASS-SVN] r53059 - grass/branches/releasebranch_6_4/gui/wxpython/lmgr
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Sep 2 12:16:53 PDT 2012
Author: annakrat
Date: 2012-09-02 12:16:53 -0700 (Sun, 02 Sep 2012)
New Revision: 53059
Modified:
grass/branches/releasebranch_6_4/gui/wxpython/lmgr/frame.py
Log:
wxGUI: fix closing gui from menu
Modified: grass/branches/releasebranch_6_4/gui/wxpython/lmgr/frame.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/lmgr/frame.py 2012-09-02 18:46:39 UTC (rev 53058)
+++ grass/branches/releasebranch_6_4/gui/wxpython/lmgr/frame.py 2012-09-02 19:16:53 UTC (rev 53059)
@@ -1757,7 +1757,9 @@
else:
self.SaveToWorkspaceFile(self.workspaceFile)
elif ret == wx.ID_CANCEL:
- event.Veto()
+ # when called from menu, it gets CommandEvent and not CloseEvent
+ if hasattr(event, 'Veto'):
+ event.Veto()
dlg.Destroy()
return
dlg.Destroy()
More information about the grass-commit
mailing list