Mercurial > octave
changeset 27604:9bc81bf5d8a6
* octave-qobject.cc: Add comment.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 31 Oct 2019 15:42:13 -0400 |
parents | bf6b192428a0 |
children | 60cecb3fed04 |
files | libgui/src/octave-qobject.cc |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/octave-qobject.cc Thu Oct 31 15:08:47 2019 -0400 +++ b/libgui/src/octave-qobject.cc Thu Oct 31 15:42:13 2019 -0400 @@ -353,6 +353,10 @@ bool gui_qobject::confirm_shutdown (void) { + // Currently, we forward to main_window::confirm_shutdown instead of + // just displaying a dialog box here because the main_window also + // knows about and is responsible for notifying the editor. + return m_main_window ? m_main_window->confirm_shutdown () : true; } }