[SCM] kdeconnect packaging branch, master, updated. debian/0.9g-1-1183-g9d69498
Maximiliano Curia
maxy at moszumanska.debian.org
Fri Oct 14 14:26:42 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/kdeconnect.git;a=commitdiff;h=0030520
The following commit has been merged in the master branch:
commit 003052093d6c6e7d85b89e62b726c57c86abbf1e
Author: Albert Vaca <albertvaka at gmail.com>
Date: Wed Aug 7 19:15:53 2013 +0200
Don't show connection notifications for unpaired devices
---
daemon/daemon.cpp | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/daemon/daemon.cpp b/daemon/daemon.cpp
index a648711..0839ede 100644
--- a/daemon/daemon.cpp
+++ b/daemon/daemon.cpp
@@ -143,14 +143,17 @@ void Daemon::onNewDeviceLink(const NetworkPackage& identityPackage, DeviceLink*
Device* device = mDevices[id];
device->addLink(dl);
- KNotification* notification = new KNotification("pingReceived"); //KNotification::Persistent
- notification->setPixmap(KIcon("dialog-ok").pixmap(48, 48));
- notification->setComponentData(KComponentData("kdeconnect", "kdeconnect"));
- notification->setTitle(device->name());
- notification->setText("Succesfully connected");
- notification->sendEvent();
+ if (device->paired()) {
+ KNotification* notification = new KNotification("pingReceived"); //KNotification::Persistent
+ notification->setPixmap(KIcon("dialog-ok").pixmap(48, 48));
+ notification->setComponentData(KComponentData("kdeconnect", "kdeconnect"));
+ notification->setTitle(device->name());
+ notification->setText("Succesfully connected");
+ notification->sendEvent();
+ }
emit deviceStatusChanged(id);
+
} else {
qDebug() << "It is a new device";
--
kdeconnect packaging
More information about the pkg-kde-commits
mailing list