Ver código fonte

wxGUI: fix quit dialog focus, default is close gui
(merge https://trac.osgeo.org/grass/changeset/67734 from trunk)


git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@67736 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 9 anos atrás
pai
commit
b68fc005e9
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      gui/wxpython/gui_core/dialogs.py

+ 1 - 1
gui/wxpython/gui_core/dialogs.py

@@ -2810,11 +2810,11 @@ class QuitDialog(wx.Dialog):
         self.btnCancel = wx.Button(parent = self.panel, id = wx.ID_CANCEL)
         self.btnClose = wx.Button(parent = self.panel, id = wx.ID_NO,
                                    label=_("Close GUI"))
+        self.btnClose.SetFocus()
         self.btnQuit = wx.Button(parent = self.panel, id = wx.ID_YES,
                                    label=_("Quit GRASS GIS"))
         self.btnQuit.SetMinSize((130, self.btnQuit.GetSize()[1]))
         self.btnQuit.SetForegroundColour(wx.Colour(35, 142, 35))
-        self.btnQuit.SetDefault()
         
         self.btnClose.Bind(wx.EVT_BUTTON, self.OnClose)
         self.btnQuit.Bind(wx.EVT_BUTTON, self.OnQuit)