From: Daniel Klaffenbach Date: Fri, 2 Jul 2010 15:47:37 +0000 (+0200) Subject: Give sudo more time before before displaying an error X-Git-Tag: v0.3.1~6 X-Git-Url: http://git.maemo.org/git/?p=qcpufreq;a=commitdiff_plain;h=31b8d1a1c494219efd0b18f7c0bee5fb6d80e187 Give sudo more time before before displaying an error In rare circumstances 2 seconds are not enough for the helper script to finish. This is why 4 seconds are now being used instead. --- diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 18d3e6e..ae3ae67 100755 --- 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!"));