Give sudo more time to terminate
[qcpufreq] / 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!"));