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()
//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;
}