From: Daniel Klaffenbach Date: Sun, 7 Nov 2010 14:15:31 +0000 (+0100) Subject: Refresh GUI after applying settings X-Git-Tag: v0.4.0~6 X-Git-Url: https://vcs.maemo.org/git/?p=qcpufreq;a=commitdiff_plain;h=affb30528f074d9855d0cd6a7331a4f06263d551 Refresh GUI after applying settings --- diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 5b0193a..2646c1a 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -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(); }