[SCM] kdeconnect packaging branch, master, updated. debian/0.9g-1-1183-g9d69498

Maximiliano Curia maxy at moszumanska.debian.org
Fri Oct 14 14:29:07 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/kdeconnect.git;a=commitdiff;h=0f280b5

The following commit has been merged in the master branch:
commit 0f280b53456311ce0c5ed1a0ec3bf0ba3ab61e09
Author: Albert Vaca <albertvaka at gmail.com>
Date:   Sat Sep 12 04:50:09 2015 -0700

    Made the runcommands plugin re-send the config when it changes
---
 plugins/runcommand/runcommandplugin.cpp | 5 ++++-
 plugins/runcommand/runcommandplugin.h   | 3 +++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/plugins/runcommand/runcommandplugin.cpp b/plugins/runcommand/runcommandplugin.cpp
index 471226d..0ffad43 100644
--- a/plugins/runcommand/runcommandplugin.cpp
+++ b/plugins/runcommand/runcommandplugin.cpp
@@ -41,6 +41,7 @@ Q_LOGGING_CATEGORY(KDECONNECT_PLUGIN_RUNCOMMAND, "kdeconnect.plugin.runcommand")
 RunCommandPlugin::RunCommandPlugin(QObject* parent, const QVariantList& args)
     : KdeConnectPlugin(parent, args)
 {
+    connect(config(), SIGNAL(configChanged()), this, SLOT(configChanged()));
 }
 
 RunCommandPlugin::~RunCommandPlugin()
@@ -82,9 +83,11 @@ void RunCommandPlugin::sendConfig()
     QString commands = config()->get<QString>("commands","{}");
     NetworkPackage np(PACKAGE_TYPE_RUNCOMMAND);
     np.set("commandList", commands);
-    qDebug() << "SENT" << np.serialize();
     sendPackage(np);
 }
 
+void RunCommandPlugin::configChanged() {
+    sendConfig();
+}
 
 #include "runcommandplugin.moc"
diff --git a/plugins/runcommand/runcommandplugin.h b/plugins/runcommand/runcommandplugin.h
index 610770c..a5b970e 100644
--- a/plugins/runcommand/runcommandplugin.h
+++ b/plugins/runcommand/runcommandplugin.h
@@ -44,6 +44,9 @@ public Q_SLOTS:
     virtual bool receivePackage(const NetworkPackage& np);
     virtual void connected();
 
+private Q_SLOTS:
+    void configChanged();
+
 private:
     void sendConfig();
 

-- 
kdeconnect packaging



More information about the pkg-kde-commits mailing list