Give sudo more time to terminate
authorDaniel Klaffenbach <danielklaffenbach@gmail.com>
Wed, 17 Nov 2010 00:23:12 +0000 (01:23 +0100)
committerDaniel 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

index 8c4f1a2..0c034cf 100644 (file)
@@ -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!"));