소스 검색

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>