Mercurial > hg > octave-shane
changeset 14694:ea11c9d8aa47 gui
Calling qApp->quit () via QMetaObject::invoke caused a segfault, now exits cleanly.
* OctaveLink (terminateOctave): Changed quit() call to direct method call.
* MainWindow: Added object name for QTerminal.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Mon, 28 May 2012 00:39:57 +0200 |
parents | c952f1e35e50 |
children | 55f88d2236b6 |
files | gui/src/MainWindow.cpp gui/src/backend/OctaveLink.cpp |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/src/MainWindow.cpp +++ b/gui/src/MainWindow.cpp @@ -194,6 +194,7 @@ QSettings *settings = ResourceManager::instance ()->settings (); settings->setValue ("MainWindow/geometry", saveGeometry ()); settings->setValue ("MainWindow/windowState", saveState ()); + settings->sync (); } void @@ -224,6 +225,7 @@ // Octave Terminal subwindow. m_terminal = new QTerminal(this); + m_terminal->setObjectName ("OctaveTerminal"); m_terminalDockWidget = new TerminalDockWidget (m_terminal, this); /*