[GRASS-SVN] r52285 - grass/branches/develbranch_6/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jul 3 04:04:35 PDT 2012


Author: martinl
Date: 2012-07-03 04:04:35 -0700 (Tue, 03 Jul 2012)
New Revision: 52285

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_core/goutput.py
Log:
wxGUI: uncheck protocol button when canceling file dialog
       (merge r52284 from trunk)


Modified: grass/branches/develbranch_6/gui/wxpython/gui_core/goutput.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_core/goutput.py	2012-07-03 10:59:57 UTC (rev 52284)
+++ grass/branches/develbranch_6/gui/wxpython/gui_core/goutput.py	2012-07-03 11:04:35 UTC (rev 52285)
@@ -805,8 +805,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