浏览代码

wxGUI: uncheck protocol button when canceling file dialog

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@52284 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 年之前
父节点
当前提交
a088db6860
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      gui/wxpython/gui_core/goutput.py

+ 5 - 0
gui/wxpython/gui_core/goutput.py

@@ -808,8 +808,13 @@ class GMConsole(wx.SplitterWindow):
                                 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()