changeset 30722:0a082e1b7422 stable

fix saving dock widget settings with exp. terminal widget (bug #61996) * main-window.cc (make_dock_widget_connections): connect close_gui_signal to save_settings in the docl widgets
author Torsten Lilge <ttl-octave@mailbox.org>
date Mon, 07 Feb 2022 22:07:06 +0100
parents ef8b02fc4588
children 0cf772732981 bfff3d523690
files libgui/src/main-window.cc
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/src/main-window.cc	Mon Feb 07 20:20:38 2022 +0100
+++ b/libgui/src/main-window.cc	Mon Feb 07 22:07:06 2022 +0100
@@ -467,6 +467,11 @@
     // close the main window without exiting the application.
     connect (qApp, &QApplication::aboutToQuit,
              dw, &octave_dock_widget::save_settings);
+
+    // The following is required when the exp. terminal widget is used
+    // and the main window is closed (no exit via interpreter)
+    connect (this, &main_window::close_gui_signal,
+             dw, &octave_dock_widget::save_settings);
   }
 
   bool main_window::command_window_has_focus (void) const