#3009: "Quit GRASS GIS" button only exits GUI
  Reporter:  cmbarton     |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:  7.6.2
 Component:  wxGUI        |    Version:  unspecified
Resolution:               |   Keywords:  "quit grass gis button"
       CPU:  Unspecified  |   Platform:  MacOSX

Comment (by annakrat):

 Replying to [comment:8 nila]:
 > I believe I have found the cause of this issue.
 > In gui/wxpython/lmgr/frame.py:2533-2536 `GMFrame.OnCloseWindowOrExit()`:
 > {{{
 >         if ret != wx.ID_CANCEL:
 >             self._closeWindow(event)
 >             if ret == wx.ID_YES:
 >                 self._quitGRASS()
 > }}}
 > in `self._closeWindow` self (the GMFrame) will be destroyed and
 `self._quitGRASS` will never be reached.

 Are you sure this is not the case? It seems like that would be a problem.
 Not sure what the solution would be, perhaps moving the os.kill to the
 GMApp OnExit handler.

Ticket URL: <https://trac.osgeo.org/grass/ticket/3009#comment:10>
GRASS GIS <https://grass.osgeo.org>

grass-dev mailing list

Reply via email to