[GRASS-SVN] r52286 - grass/branches/releasebranch_6_4/gui/wxpython/gui_core
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jul 3 04:05:41 PDT 2012
Author: martinl
Date: 2012-07-03 04:05:41 -0700 (Tue, 03 Jul 2012)
New Revision: 52286
Modified:
grass/branches/releasebranch_6_4/gui/wxpython/gui_core/goutput.py
Log:
wxGUI: uncheck protocol button when canceling file dialog
(merge r52284 from trunk)
Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_core/goutput.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_core/goutput.py 2012-07-03 11:04:35 UTC (rev 52285)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_core/goutput.py 2012-07-03 11:05:41 UTC (rev 52286)
@@ -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