diff options
Diffstat (limited to 'grc/gui/MainWindow.py')
-rw-r--r-- | grc/gui/MainWindow.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/grc/gui/MainWindow.py b/grc/gui/MainWindow.py index 97f9033974..efa8573c3b 100644 --- a/grc/gui/MainWindow.py +++ b/grc/gui/MainWindow.py @@ -33,7 +33,7 @@ from .BlockTreeWindow import BlockTreeWindow from .VariableEditor import VariableEditor from .Constants import \ NEW_FLOGRAPH_TITLE, DEFAULT_CONSOLE_WINDOW_WIDTH -from .Dialogs import TextDisplay, MessageDialogHelper +from .Dialogs import TextDisplay, MessageDialogWrapper from .NotebookPage import NotebookPage from ..core import Messages @@ -398,10 +398,10 @@ class MainWindow(Gtk.Window): Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL, Gtk.STOCK_SAVE, Gtk.ResponseType.OK ) - return MessageDialogHelper( - Gtk.MessageType.QUESTION, Gtk.ButtonsType.NONE, 'Unsaved Changes!', + return MessageDialogWrapper( + self, Gtk.MessageType.QUESTION, Gtk.ButtonsType.NONE, 'Unsaved Changes!', 'Would you like to save changes before closing?', Gtk.ResponseType.OK, buttons - ) + ).run_and_destroy() def _get_files(self): """ |