changeset 16497:9ff3181e671c

Reconnect aboutToQuit signal and prepare_to_exit (write_settings) slot. * main-window.cc (main_window::construct): Connect qApp::aboutToQuit to main_window::prepare_to_exit.
author Daniel J Sebald <daniel.sebald@ieee.org>
date Thu, 11 Apr 2013 14:40:56 -0400
parents d3b01ae21259
children 605d7f0ee0d8
files libgui/src/main-window.cc
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/src/main-window.cc	Thu Apr 11 12:02:44 2013 -0400
+++ b/libgui/src/main-window.cc	Thu Apr 11 14:40:56 2013 -0400
@@ -542,6 +542,9 @@
 
   construct_tool_bar ();
 
+  connect (qApp, SIGNAL (aboutToQuit ()),
+           this, SLOT (prepare_to_exit ()));
+
   connect (this, SIGNAL (settings_changed (const QSettings *)),
            this, SLOT (notice_settings (const QSettings *)));