Commit 0a6c40bb authored by Harald Sitter's avatar Harald Sitter 🏳🌈
Browse files

port away from deprecated runUrl without flags to explicitly set RunFlags

Summary:
the way we called the old function is equal to no flags being set.

not bumping dependency as 5.31 also increased Qt requirement to 5.6,
we don't really need either besides this one deprecation.

Reviewers: sandsmark

Subscribers: kde-utils-devel

Differential Revision: https://phabricator.kde.org/D8940
parent 7a32ec61
......@@ -36,6 +36,7 @@
#include <KFormat>
#include <QUrl>
#include <KLocalizedString>
#include <kio_version.h>
#include <QApplication> //QApplication::setOverrideCursor()
#include <QClipboard>
......@@ -287,7 +288,11 @@ void RadialMap::Widget::mousePressEvent(QMouseEvent *e)
QAction* clicked = popup.exec(e->globalPos(), nullptr);
if (openFileManager && clicked == openFileManager) {
KRun::runUrl(url, QLatin1String( "inode/directory" ), this);
KRun::runUrl(url, QLatin1String("inode/directory"), this
#if KIO_VERSION >= QT_VERSION_CHECK(5, 31, 0)
, KRun::RunFlags()
#endif
);
} else if (openTerminal && clicked == openTerminal) {
KToolInvocation::invokeTerminal(QString(),url.path());
} else if (centerMap && clicked == centerMap) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment