[GRASS-SVN] r52651 - grass/trunk/gui/wxpython/dbmgr

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Aug 13 01:58:58 PDT 2012


Author: martinl
Date: 2012-08-13 01:58:57 -0700 (Mon, 13 Aug 2012)
New Revision: 52651

Modified:
   grass/trunk/gui/wxpython/dbmgr/sqlbuilder.py
Log:
wxGUI/sqlbuilder: bugfix (advance sql mode) - patch provided by Stepan Turek


Modified: grass/trunk/gui/wxpython/dbmgr/sqlbuilder.py
===================================================================
--- grass/trunk/gui/wxpython/dbmgr/sqlbuilder.py	2012-08-13 08:26:02 UTC (rev 52650)
+++ grass/trunk/gui/wxpython/dbmgr/sqlbuilder.py	2012-08-13 08:58:57 UTC (rev 52651)
@@ -49,7 +49,6 @@
                              wx.BITMAP_TYPE_ICO))
         
         self.parent     = parent
-        self.evtHandler = None
         
         # variables
         self.vectmap = vectmap # fullname
@@ -355,10 +354,6 @@
         return self.text_sql.GetValue().strip().replace("\n"," ")
         
     def OnClose(self, event):
-        """!Close button pressed"""
-        if self.evtHandler:
-            self.evtHandler(event = 'close')
-        
         self.Destroy()
         event.Skip()
  
@@ -498,6 +493,13 @@
         """!Return True if the dialog will be close on apply"""
         return self.close_onapply.IsChecked()
 
+    def OnClose(self, event):
+        """!Close button pressed"""
+        if self.evtHandler:
+            self.evtHandler(event = 'close')
+    
+        SQLBuilder.OnClose(self, event)
+
 class SQLBuilderUpdate(SQLBuilder):
     """!Class for building UPDATE SQL statement"""
     def __init__(self, parent, vectmap, id = wx.ID_ANY,



More information about the grass-commit mailing list