diff gui/src/MainWindow.cpp @ 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 3b6177bd63b0
children fa52c6e84ae0
line wrap: on
line diff
--- a/gui/src/MainWindow.cpp	Tue Mar 27 16:35:25 2012 -0400
+++ b/gui/src/MainWindow.cpp	Wed May 02 21:15:08 2012 +0200
@@ -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 ();
 }