mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 21:23:52 +00:00
Fix multi-line comment warning
This commit is contained in:
parent
4fa303d7c4
commit
751211351c
1 changed files with 29 additions and 27 deletions
|
@ -111,37 +111,39 @@ bool Process::ProcessInvoker::startProcess(const QString &name, const QStringLis
|
||||||
} else {
|
} else {
|
||||||
mProcess->start(path, arguments);
|
mProcess->start(path, arguments);
|
||||||
|
|
||||||
// if (!mProcess->waitForFinished()) {
|
/*
|
||||||
// QMessageBox msgBox;
|
if (!mProcess->waitForFinished()) {
|
||||||
// msgBox.setWindowTitle(tr("Error starting executable"));
|
QMessageBox msgBox;
|
||||||
// msgBox.setIcon(QMessageBox::Critical);
|
msgBox.setWindowTitle(tr("Error starting executable"));
|
||||||
// msgBox.setStandardButtons(QMessageBox::Ok);
|
msgBox.setIcon(QMessageBox::Critical);
|
||||||
// msgBox.setText(tr("<html><head/><body><p><b>Could not start %1</b></p> \
|
msgBox.setStandardButtons(QMessageBox::Ok);
|
||||||
// <p>An error occurred while starting %1.</p> \
|
msgBox.setText(tr("<html><head/><body><p><b>Could not start %1</b></p> \
|
||||||
// <p>Press \"Show Details...\" for more information.</p></body></html>").arg(info.fileName()));
|
<p>An error occurred while starting %1.</p> \
|
||||||
// msgBox.setDetailedText(mProcess->errorString());
|
<p>Press \"Show Details...\" for more information.</p></body></html>").arg(info.fileName()));
|
||||||
// msgBox.exec();
|
msgBox.setDetailedText(mProcess->errorString());
|
||||||
|
msgBox.exec();
|
||||||
|
|
||||||
// return false;
|
return false;
|
||||||
// }
|
}
|
||||||
|
|
||||||
// if (mProcess->exitCode() != 0 || mProcess->exitStatus() == QProcess::CrashExit) {
|
if (mProcess->exitCode() != 0 || mProcess->exitStatus() == QProcess::CrashExit) {
|
||||||
// QString error(mProcess->readAllStandardError());
|
QString error(mProcess->readAllStandardError());
|
||||||
// error.append(tr("\nArguments:\n"));
|
error.append(tr("\nArguments:\n"));
|
||||||
// error.append(arguments.join(" "));
|
error.append(arguments.join(" "));
|
||||||
|
|
||||||
// QMessageBox msgBox;
|
QMessageBox msgBox;
|
||||||
// msgBox.setWindowTitle(tr("Error running executable"));
|
msgBox.setWindowTitle(tr("Error running executable"));
|
||||||
// msgBox.setIcon(QMessageBox::Critical);
|
msgBox.setIcon(QMessageBox::Critical);
|
||||||
// msgBox.setStandardButtons(QMessageBox::Ok);
|
msgBox.setStandardButtons(QMessageBox::Ok);
|
||||||
// msgBox.setText(tr("<html><head/><body><p><b>Executable %1 returned an error</b></p> \
|
msgBox.setText(tr("<html><head/><body><p><b>Executable %1 returned an error</b></p> \
|
||||||
// <p>An error occurred while running %1.</p> \
|
<p>An error occurred while running %1.</p> \
|
||||||
// <p>Press \"Show Details...\" for more information.</p></body></html>").arg(info.fileName()));
|
<p>Press \"Show Details...\" for more information.</p></body></html>").arg(info.fileName()));
|
||||||
// msgBox.setDetailedText(error);
|
msgBox.setDetailedText(error);
|
||||||
// msgBox.exec();
|
msgBox.exec();
|
||||||
|
|
||||||
// return false;
|
return false;
|
||||||
// }
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue