Browse Source

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 12 years ago
parent
commit
a088db6860
1 changed files with 5 additions and 0 deletions
  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()