In rare circumstances 2 seconds are not enough for the helper script
to finish. This is why 4 seconds are now being used instead.
helperProcess->start( "sudo", arguments, QIODevice::NotOpen );
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!"));
//do not show this error again
showSudoError = false;
QMessageBox::critical(this, tr("QCPUFreq"), tr("There seems to be a problem with your sudo setup!"));