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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Aug 6 05:48:57 EDT 2008


Author: martinl
Date: 2008-08-06 05:48:57 -0400 (Wed, 06 Aug 2008)
New Revision: 32566

Modified:
   grass/trunk/gui/wxpython/gui_modules/vdigit.py
Log:
wxGUI/vdigit: close settings dialog properly (merge from devbr6, r32565)

Modified: grass/trunk/gui/wxpython/gui_modules/vdigit.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/vdigit.py	2008-08-06 09:46:50 UTC (rev 32565)
+++ grass/trunk/gui/wxpython/gui_modules/vdigit.py	2008-08-06 09:48:57 UTC (rev 32566)
@@ -1631,7 +1631,9 @@
         mainSizer.Add(item=notebook, proportion=1, flag=wx.EXPAND | wx.ALL, border=5)
         mainSizer.Add(item=btnSizer, proportion=0,
                       flag=wx.EXPAND | wx.ALL | wx.ALIGN_CENTER, border=5)
-
+        
+        self.Bind(wx.EVT_CLOSE, self.OnCancel)
+        
         self.SetSizer(mainSizer)
         mainSizer.Fit(self)
 
@@ -2117,6 +2119,8 @@
         self.parent.toolbars['vdigit'].settingsDialog = None
         self.Close()
 
+        event.Skip()
+        
     def UpdateSettings(self):
         """Update UserSettings"""
 



More information about the grass-commit mailing list