projects
/
qcpufreq
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Only show save option if "kernel-config" is installed
[qcpufreq]
/
src
/
mainwindow.cpp
diff --git
a/src/mainwindow.cpp
b/src/mainwindow.cpp
index
0bde7e5
..
fa0cd97
100644
(file)
--- a/
src/mainwindow.cpp
+++ b/
src/mainwindow.cpp
@@
-359,7
+359,12
@@
void MainWindow::init()
//enable save option on power kernels
if (settings->usePowerKernel()) {
//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);
+ }
}
}
}
}