فهرست منبع

wxGUI: remove not needed OnCloseWindowExitGRASS

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@67227 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 9 سال پیش
والد
کامیت
8b34e51e0f
2فایلهای تغییر یافته به همراه1 افزوده شده و 6 حذف شده
  1. 0 5
      gui/wxpython/lmgr/frame.py
  2. 1 1
      gui/wxpython/xml/wxgui_items.xml

+ 0 - 5
gui/wxpython/lmgr/frame.py

@@ -2278,11 +2278,6 @@ class GMFrame(wx.Frame):
         self._auimgr.UnInit()
         self.Destroy()
         
-    def OnCloseWindowExitGRASS(self, event):
-        """Close wxGUI and quit GRASS terminal"""
-        self._closeWindow()
-        self._quitGRASS()
-
     def _quitGRASS(self):
         """Quit GRASS terminal"""
         try:

+ 1 - 1
gui/wxpython/xml/wxgui_items.xml

@@ -70,7 +70,7 @@
   </wxgui-item>
   <wxgui-item name="Quit">
     <label>Quit GRASS GIS</label>
-    <handler>OnCloseWindowExitGRASS</handler>
+    <handler>OnCloseWindowOrExit</handler>
     <description>Quit wxGUI session and exit GRASS shell.</description>
     <shortcut>Ctrl+Q</shortcut>
     <wx-id>ID_EXIT</wx-id>