Try to solve #123.

This commit is contained in:
Martin Rotter 2015-08-26 07:27:48 +02:00
parent bd0b6b9b0e
commit 6ebab13dfd
1 changed files with 8 additions and 2 deletions

View File

@ -51,9 +51,15 @@ bool WebFactory::openUrlInExternalBrowser(const QString &url) {
QString call_line = "\"" + browser + "\" \"" + arguments.arg(url) + "\"";
qDebug("Running code '%s'.", qPrintable(call_line));
qDebug("Running command '%s'.", qPrintable(call_line));
return QProcess::startDetached(call_line);
bool result = QProcess::startDetached(call_line);
if (!result) {
qDebug("External web browser call failed.");
}
return result;
//return QProcess::startDetached(QString("\"") + browser + QSL("\""), QStringList() << arguments.arg(url));
}
else {