mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-02-02 10:27:15 +01:00
Try to solve #123.
This commit is contained in:
parent
1760e14295
commit
bd0b6b9b0e
@ -206,8 +206,8 @@ void DownloadItem::stop() {
|
||||
|
||||
void DownloadItem::openFile() {
|
||||
if (!QDesktopServices::openUrl(QUrl::fromLocalFile(m_output.fileName()))) {
|
||||
MessageBox::show(this, QMessageBox::Warning, tr("Cannot open file"), tr("Cannot open output file. Open it manually."),
|
||||
QString(), QDir::toNativeSeparators(m_output.fileName()));
|
||||
qApp->showGuiMessage(tr("Cannot open file"), tr("Cannot open output file. Open it manually."),
|
||||
QSystemTrayIcon::Warning, qApp->mainForm(), true);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -49,7 +49,12 @@ bool WebFactory::openUrlInExternalBrowser(const QString &url) {
|
||||
QString browser = qApp->settings()->value(GROUP(Browser), SETTING(Browser::CustomExternalBrowserExecutable)).toString();
|
||||
QString arguments = qApp->settings()->value(GROUP(Browser), SETTING(Browser::CustomExternalBrowserArguments)).toString();
|
||||
|
||||
return QProcess::startDetached(QString("\"") + browser + QSL("\""), QStringList() << arguments.arg(url));
|
||||
QString call_line = "\"" + browser + "\" \"" + arguments.arg(url) + "\"";
|
||||
|
||||
qDebug("Running code '%s'.", qPrintable(call_line));
|
||||
|
||||
return QProcess::startDetached(call_line);
|
||||
//return QProcess::startDetached(QString("\"") + browser + QSL("\""), QStringList() << arguments.arg(url));
|
||||
}
|
||||
else {
|
||||
return QDesktopServices::openUrl(url);
|
||||
|
Loading…
x
Reference in New Issue
Block a user