[GRASS-SVN] r58069 - grass/trunk/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Oct 19 20:16:13 PDT 2013


Author: annakrat
Date: 2013-10-19 20:16:12 -0700 (Sat, 19 Oct 2013)
New Revision: 58069

Modified:
   grass/trunk/gui/wxpython/gui_core/dialogs.py
Log:
wxGUI/import dialog: fix closing dialog with wxpython 2.9

Modified: grass/trunk/gui/wxpython/gui_core/dialogs.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/dialogs.py	2013-10-20 02:45:36 UTC (rev 58068)
+++ grass/trunk/gui/wxpython/gui_core/dialogs.py	2013-10-20 03:16:12 UTC (rev 58069)
@@ -1564,7 +1564,9 @@
         self.btn_run.SetToolTipString(_("Import selected layers"))
         self.btn_run.SetDefault()
         self.btn_run.Bind(wx.EVT_BUTTON, self.OnRun)
-        
+
+        self.Bind(wx.EVT_CLOSE, lambda evt: self.Destroy())
+
     def doLayout(self):
         """!Do layout"""
         dialogSizer = wx.BoxSizer(wx.VERTICAL)



More information about the grass-commit mailing list