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 e89e7df5 authored by Heiko Becker's avatar Heiko Becker 🎸

Fix deleting all cookies

parent 28b1d032
......@@ -83,9 +83,12 @@ bool ClearRunCommandHistoryAction::action()
bool ClearAllCookiesAction::action()
{
QDBusInterface mediamanager(QLatin1String( "org.kde.kded" ), QLatin1String( "/modules/kcookiejar" ), QLatin1String( "org.kde.KCookieServer" ));
QDBusReply<void> reply = mediamanager.call(QLatin1String( "deleteAllCookies" ));
return reply.isValid();
QDBusInterface cookiejar(QStringLiteral("org.kde.kcookiejar5"),
QStringLiteral("/modules/kcookiejar" ),
QStringLiteral("org.kde.KCookieServer"),
QDBusConnection::sessionBus());
QDBusReply<void> reply = cookiejar.call(QStringLiteral("deleteAllCookies"));
return reply.isValid();
}
bool ClearAllCookiesPoliciesAction::action()
......
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