Refresh GUI after applying settings
authorDaniel Klaffenbach <danielklaffenbach@gmail.com>
Sun, 7 Nov 2010 14:15:31 +0000 (15:15 +0100)
committerDaniel Klaffenbach <danielklaffenbach@gmail.com>
Sun, 7 Nov 2010 14:15:31 +0000 (15:15 +0100)
src/mainwindow.cpp

index 5b0193a..2646c1a 100644 (file)
@@ -54,12 +54,11 @@ MainWindow::MainWindow(QWidget *parent) :
     settings = new Settings;
     settings->hide();
 
+    init();
+
     //applies the settings from the settings dialog
     applySettings();
 
-    init();
-    refresh();
-
     //initialize orientation
     orientationChanged();
 
@@ -146,6 +145,9 @@ void MainWindow::applySettings()
 {
     setAutoRotation();
     setAdvancedTemperature();
+
+    //refresh the GUI after applying the settings
+    refresh();
 }