Browse Source

wxGUI: fix quit dialog focus, default is close gui

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@67734 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 9 years ago
parent
commit
fe18d9bd9f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      gui/wxpython/gui_core/dialogs.py

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

@@ -2120,11 +2120,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)