From 38c743fcd8a85b80d522f543121199762babf722 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Mon, 13 May 2019 22:35:44 +0000 Subject: [PATCH] Fix stuff in ScreensaverPlugin --- plugins/screensaver-inhibit/screensaverinhibitplugin.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/plugins/screensaver-inhibit/screensaverinhibitplugin.cpp b/plugins/screensaver-inhibit/screensaverinhibitplugin.cpp index 7766762c0..775517c53 100644 --- a/plugins/screensaver-inhibit/screensaverinhibitplugin.cpp +++ b/plugins/screensaver-inhibit/screensaverinhibitplugin.cpp @@ -20,11 +20,9 @@ #include "screensaverinhibitplugin.h" -#include #include #include #include -#include #include #include @@ -44,7 +42,7 @@ ScreensaverInhibitPlugin::ScreensaverInhibitPlugin(QObject* parent, const QVaria { QDBusInterface inhibitInterface(INHIBIT_SERVICE, INHIBIT_PATH, INHIBIT_INTERFACE); - QDBusMessage reply = inhibitInterface.call(INHIBIT_METHOD, "kdeconnect", "Phone is connected"); + QDBusMessage reply = inhibitInterface.call(INHIBIT_METHOD, QStringLiteral("org.kde.kdeconnect.daemon"), i18n("Phone is connected")); if (reply.errorMessage() != nullptr) { qCDebug(KDECONNECT_PLUGIN_SCREENSAVERINHIBIT) << "Unable to inhibit the screensaver: " << reply.errorMessage(); @@ -73,7 +71,6 @@ ScreensaverInhibitPlugin::~ScreensaverInhibitPlugin() void ScreensaverInhibitPlugin::connected() { - } bool ScreensaverInhibitPlugin::receivePacket(const NetworkPacket& np) @@ -82,5 +79,4 @@ bool ScreensaverInhibitPlugin::receivePacket(const NetworkPacket& np) return false; } - #include "screensaverinhibitplugin.moc"