//enable save option on power kernels
if (settings->usePowerKernel()) {
- ui->actionSave->setEnabled(true);
+ //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 defined(Q_WS_MAEMO_5)
setAttribute(Qt::WA_Maemo5AutoOrientation, settings->useAutoRotate());
+ settings->setAttribute(Qt::WA_Maemo5AutoOrientation, settings->useAutoRotate());
#endif
}