Give sudo more time before before displaying an error
authorDaniel Klaffenbach <danielklaffenbach@gmail.com>
Fri, 2 Jul 2010 15:47:37 +0000 (17:47 +0200)
committerDaniel 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

index 18d3e6e..ae3ae67 100755 (executable)
@@ -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!"));