Fix multi-line comment warning

loadfix
scrawl 10 years ago
parent 4fa303d7c4
commit 751211351c

@ -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) {
// QString error(mProcess->readAllStandardError()); if (mProcess->exitCode() != 0 || mProcess->exitStatus() == QProcess::CrashExit) {
// error.append(tr("\nArguments:\n")); QString error(mProcess->readAllStandardError());
// error.append(arguments.join(" ")); error.append(tr("\nArguments:\n"));
error.append(arguments.join(" "));
// QMessageBox msgBox;
// msgBox.setWindowTitle(tr("Error running executable")); QMessageBox msgBox;
// msgBox.setIcon(QMessageBox::Critical); msgBox.setWindowTitle(tr("Error running executable"));
// msgBox.setStandardButtons(QMessageBox::Ok); msgBox.setIcon(QMessageBox::Critical);
// msgBox.setText(tr("<html><head/><body><p><b>Executable %1 returned an error</b></p> \ msgBox.setStandardButtons(QMessageBox::Ok);
// <p>An error occurred while running %1.</p> \ msgBox.setText(tr("<html><head/><body><p><b>Executable %1 returned an error</b></p> \
// <p>Press \"Show Details...\" for more information.</p></body></html>").arg(info.fileName())); <p>An error occurred while running %1.</p> \
// msgBox.setDetailedText(error); <p>Press \"Show Details...\" for more information.</p></body></html>").arg(info.fileName()));
// msgBox.exec(); msgBox.setDetailedText(error);
msgBox.exec();
// return false;
// } return false;
}
*/
} }
return true; return true;

Loading…
Cancel
Save