projects
/
qcpufreq
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1f49a4
)
Give sudo more time before before displaying an error
author
Daniel Klaffenbach
<danielklaffenbach@gmail.com>
Fri, 2 Jul 2010 15:47:37 +0000
(17:47 +0200)
committer
Daniel Klaffenbach
<danielklaffenbach@gmail.com>
Fri, 2 Jul 2010 15:47:37 +0000
(17:47 +0200)
In rare circumstances 2 seconds are not enough for the helper script
to finish. This is why 4 seconds are now being used instead.
src/mainwindow.cpp
patch
|
blob
|
history
diff --git
a/src/mainwindow.cpp
b/src/mainwindow.cpp
index
18d3e6e
..
ae3ae67
100755
(executable)
--- a/
src/mainwindow.cpp
+++ b/
src/mainwindow.cpp
@@
-136,7
+136,7
@@
int MainWindow::callHelper(QString action, QString param)
helperProcess->start( "sudo", arguments, QIODevice::NotOpen );
- if ( showSudoError && !helperProcess->waitForFinished( 200 )) {
+ if ( showSudoError && !helperProcess->waitForFinished( 400 )) {
//do not show this error again
showSudoError = false;
QMessageBox::critical(this, tr("QCPUFreq"), tr("There seems to be a problem with your sudo setup!"));