From: Daniel Klaffenbach Date: Wed, 17 Nov 2010 00:23:12 +0000 (+0100) Subject: Give sudo more time to terminate X-Git-Tag: v0.4.1~1 X-Git-Url: https://vcs.maemo.org/git/?p=qcpufreq;a=commitdiff_plain;h=2c875efea568946135f0437add1a7eb9bb23e39f Give sudo more time to terminate On initial startup sudo might need more time - increase the wait timer to 2 seconds. --- diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 8c4f1a2..0c034cf 100644 --- 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!"));