Use new function overload of KRun::runUrl()

KIO 5.31 introduced a new overload of KRun::runUrl() and set deprecation
warnings on the old one.
This commit is contained in:
Andrius Štikonas 2017-04-16 19:35:08 +01:00
parent e45d35b5fe
commit d9e19a2d5d
1 changed files with 1 additions and 1 deletions

View File

@ -456,7 +456,7 @@ void ApplyProgressDialog::browserReport()
// set the temp file's permission for everyone to read it.
file.setPermissions(QFile::ReadOwner | QFile::WriteOwner | QFile::ReadGroup | QFile::ReadOther);
if (!KRun::runUrl(QUrl::fromLocalFile(file.fileName()), QStringLiteral("text/html"), this, true))
if (!KRun::runUrl(QUrl::fromLocalFile(file.fileName()), QStringLiteral("text/html"), this, KRun::RunFlags()))
KMessageBox::sorry(this, xi18nc("@info", "The configured external browser could not be run. Please check your settings."), xi18nc("@title:window", "Could Not Launch Browser."));
} else
KMessageBox::sorry(this, xi18nc("@info", "Could not create temporary file <filename>%1</filename> for writing.", file.fileName()), i18nc("@title:window", "Could Not Launch Browser."));