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

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jul 3 03:59:58 PDT 2012


Author: martinl
Date: 2012-07-03 03:59:57 -0700 (Tue, 03 Jul 2012)
New Revision: 52284

Modified:
   grass/trunk/gui/wxpython/gui_core/goutput.py
Log:
wxGUI: uncheck protocol button when canceling file dialog


Modified: grass/trunk/gui/wxpython/gui_core/goutput.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/goutput.py	2012-07-02 16:01:16 UTC (rev 52283)
+++ grass/trunk/gui/wxpython/gui_core/goutput.py	2012-07-03 10:59:57 UTC (rev 52284)
@@ -808,8 +808,13 @@
                                 style = wx.SAVE | wx.FD_OVERWRITE_PROMPT)
             if dlg.ShowModal() == wx.ID_OK:
                 self.cmdFileProtocol = dlg.GetPath()
+            else:
+                wx.CallAfter(self.btnCmdProtocol.SetValue, False)
+            
             dlg.Destroy()
             
+        event.Skip()
+        
     def OnCmdAbort(self, event):
         """!Abort running command"""
         self.cmdThread.abort()



More information about the grass-commit mailing list