X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fmainwindow.cpp;h=1b826a188a0aa96953a821b9e0bff8b35310762a;hb=4f5b970f5b487a978041b40ed905bfbd7c55224a;hp=e904561df800edc2f935dbe4c52e7d7e50045553;hpb=012c01c85995ff647215a9816e1efe6ae50f777d;p=qcpufreq diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index e904561..1b826a1 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -28,7 +28,7 @@ #endif #define APPNAME "QCPUFreq" -#define APPVERSION "0.3.2" +#define APPVERSION "0.3.3" MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), @@ -81,6 +81,11 @@ MainWindow::MainWindow(QWidget *parent) : connect(&refreshTimer, SIGNAL(timeout()), this, SLOT(refresh())); connect(ui->actionOverclocking, SIGNAL(toggled(bool)), this, SLOT(setOverclocking())); + //disable overclocking button on vanilla kernels + if ( getScalingFreq(0) <= 600000 ) { + ui->actionOverclocking->setDisabled(true); + } + } MainWindow::~MainWindow() @@ -116,7 +121,7 @@ void MainWindow::adjustFreq() //check for overclocking #if defined(Q_WS_MAEMO_5) if (this->allowOverclocking == false && newmax > 600000) { - QMaemo5InformationBox::information(this, tr( "You need to enable overclocking for setting frequencies above 600MHz!"), 0); + QMaemo5InformationBox::information(this, tr( "You need to enable overclocking in QCPUFreq's menu for setting frequencies above 600MHz!"), 0); refresh(); return; }