From 62f646bd72460f0e83b708c404bd8f7f2e674b04 Mon Sep 17 00:00:00 2001 From: Daniel Klaffenbach Date: Wed, 3 Nov 2010 23:23:33 +0100 Subject: [PATCH] Only display overclocking warning when enabling OC. The previous code also displayed the warning when disabling overclocking. --- src/settings.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/settings.cpp b/src/settings.cpp index 80eae60..d660d0c 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -81,13 +81,13 @@ void Settings::save() */ void Settings::showOverclockingWarning() { - + if (ui->checkBox_oc->isChecked()) { #if defined(Q_WS_MAEMO_5) - QMaemo5InformationBox::information(this, tr( "Please note that overclocking voids your warranty and may break your device! Be careful!"), 0); + QMaemo5InformationBox::information(this, tr( "Please note that overclocking voids your warranty and may break your device! Be careful!"), 0); #else - QMessageBox::warning(this, tr("Warning"), tr("Please note that overclocking voids your warranty and may break your device! Be careful!")); + QMessageBox::warning(this, tr("Warning"), tr("Please note that overclocking voids your warranty and may break your device! Be careful!")); #endif - + } } -- 1.7.9.5