projects
/
qcpufreq
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16549fd
)
Give sudo more time to terminate
author
Daniel Klaffenbach
<danielklaffenbach@gmail.com>
Wed, 17 Nov 2010 00:23:12 +0000
(
01:23
+0100)
committer
Daniel Klaffenbach
<danielklaffenbach@gmail.com>
Wed, 17 Nov 2010 00:23:12 +0000
(
01:23
+0100)
On initial startup sudo might need more time - increase the wait timer
to 2 seconds.
src/mainwindow.cpp
patch
|
blob
|
history
diff --git
a/src/mainwindow.cpp
b/src/mainwindow.cpp
index
8c4f1a2
..
0c034cf
100644
(file)
--- a/
src/mainwindow.cpp
+++ b/
src/mainwindow.cpp
@@
-181,7
+181,7
@@
int MainWindow::callHelper(QString action, QString param)
helperProcess.start( "sudo", arguments, QIODevice::NotOpen );
- if ( showSudoError && !helperProcess.waitForFinished( 400 )) {
+ if ( showSudoError && !helperProcess.waitForFinished( 2000 )) {
//do not show this error again
showSudoError = false;
QMessageBox::critical(this, tr("QCPUFreq"), tr("There seems to be a problem with your sudo setup!"));