setAutoRotation();
setAdvancedTemperature();
+ //if overclocking is/was enabled we can also enable the "Load preset" option
+ if (settings->useOverclocking() && settings->usePowerKernel() && settings->isKernelConfigInstalled()) {
+ ui->actionLoad->setEnabled(true);
+ } else {
+ ui->actionLoad->setEnabled(false);
+ }
+
//refresh the GUI after applying the settings
refresh();
}
} else {
this->minFreq = min.toInt();
}
+ file.close();
//enable save and load option on power kernels
- if (settings->usePowerKernel()) {
- //only enable save if /usr/sbin/kernel-config is present
- file.close();
- file.setFileName("/usr/sbin/kernel-config");
- if (file.exists()) {
- ui->actionSave->setEnabled(true);
+ if (settings->usePowerKernel() && settings->isKernelConfigInstalled()) {
+ ui->actionSave->setEnabled(true);
+ //loading presets may cause overclocking - only enable it if overclokcing is enabled
+ if (settings->useOverclocking()) {
ui->actionLoad->setEnabled(true);
}
}
{
#if defined(Q_WS_MAEMO_5)
callHelper("loadpreset", presetName);
- QMaemo5InformationBox::information(this, tr( "The preset %s was loaded." ), QMaemo5InformationBox::DefaultTimeout);
+ QMaemo5InformationBox::information(this, tr( "The preset was loaded." ), QMaemo5InformationBox::DefaultTimeout);
#endif
}