Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 90d44bea authored by Nicolas Fella's avatar Nicolas Fella

Port away from deprecated KRun::runUrl

Use the new OpenURLJob instead.

Builds, but untested
parent 4ac9376a
......@@ -4,7 +4,7 @@ set(GDRIVE_VERSION 1.3.70)
project(kio-gdrive VERSION ${GDRIVE_VERSION})
set(QT_MIN_VERSION 5.2.0)
set(KF5_MIN_VERSION 5.48.0)
set(KF5_MIN_VERSION 5.71.0)
set(KGAPI_MIN_VERSION 5.11.41)
set(KACCOUNTS_MIN_VERSION 20.03.80)
set(QTKEYCHAIN_MIN_VERSION 0.6.0)
......
......@@ -23,7 +23,7 @@
#include <KLocalizedString>
#include <KNotification>
#include <KRun>
#include <KIO/OpenUrlJob>
#include <KPluginFactory>
......@@ -54,7 +54,8 @@ void GoogleDrivePlugin::onAccountCreated(const Accounts::AccountId accountId, co
url.setPath(QStringLiteral("/%1").arg(account->displayName()));
connect(notification, static_cast<void (KNotification::*)(unsigned int)>(&KNotification::activated), this, [=]() {
KRun::runUrl(url, QStringLiteral("inode/directory"), nullptr, KRun::RunFlags());
KIO::OpenUrlJob *job = new KIO::OpenUrlJob(url, QStringLiteral("inode/directory"));
job->start();
});
notification->sendEvent();
......
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