Mercurial > hg > octave-lojdl
changeset 14586:8e9823066dad gui
Fixed bug with not correctly syncing settings.
MainWindow.cpp (processSettings): Settings dialog will be destroyed before the settingsChanged signal will be emitted.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Wed, 02 May 2012 21:15:08 +0200 |
parents | f6b4236da9f8 |
children | 12b60f3b1394 |
files | gui/src/MainWindow.cpp |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/src/MainWindow.cpp +++ b/gui/src/MainWindow.cpp @@ -196,8 +196,9 @@ void MainWindow::processSettingsDialogRequest () { - SettingsDialog settingsDialog (this); - settingsDialog.exec (); + SettingsDialog *settingsDialog = new SettingsDialog (this); + settingsDialog->exec (); + delete settingsDialog; emit settingsChanged (); ResourceManager::instance ()->updateNetworkSettings (); }