Mercurial > hg > octave-nkf
comparison libgui/src/main-window.cc @ 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 | 8b783661e03f |
children | facf00ce97d3 |
comparison
equal
deleted
inserted
replaced
16496:d3b01ae21259 | 16497:9ff3181e671c |
---|---|
540 | 540 |
541 construct_menu_bar (); | 541 construct_menu_bar (); |
542 | 542 |
543 construct_tool_bar (); | 543 construct_tool_bar (); |
544 | 544 |
545 connect (qApp, SIGNAL (aboutToQuit ()), | |
546 this, SLOT (prepare_to_exit ())); | |
547 | |
545 connect (this, SIGNAL (settings_changed (const QSettings *)), | 548 connect (this, SIGNAL (settings_changed (const QSettings *)), |
546 this, SLOT (notice_settings (const QSettings *))); | 549 this, SLOT (notice_settings (const QSettings *))); |
547 | 550 |
548 setWindowTitle ("Octave"); | 551 setWindowTitle ("Octave"); |
549 | 552 |