diff options
author | Javier <dev.git@javispedro.com> | 2015-12-25 23:42:21 +0100 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2015-12-25 23:42:21 +0100 |
commit | 3f63f0501e44c190c0d9c252c26272929442f07c (patch) | |
tree | ffdb3bcaee2f334faeb5a68586e7fe76ca5200a1 | |
parent | ab90fac4e4c306f47ab0903b33d1b3aacb228c46 (diff) | |
download | sapd-3f63f0501e44c190c0d9c252c26272929442f07c.tar.gz sapd-3f63f0501e44c190c0d9c252c26272929442f07c.zip |
ignore transient sailfish notifitications
-rw-r--r-- | hostmanageragent.cc | 2 | ||||
-rw-r--r-- | notificationagent.cc | 2 | ||||
-rw-r--r-- | notificationconn.cc | 5 |
3 files changed, 7 insertions, 2 deletions
diff --git a/hostmanageragent.cc b/hostmanageragent.cc index 24f3cb1..ec7172b 100644 --- a/hostmanageragent.cc +++ b/hostmanageragent.cc @@ -23,7 +23,7 @@ HostManagerAgent* HostManagerAgent::instance() void HostManagerAgent::peerFound(SAPPeer *peer) { - qDebug() << "Host manager peer found" << peer->peerName(); + Q_UNUSED(peer); } void HostManagerAgent::requestConnection(SAPConnectionRequest *request) diff --git a/notificationagent.cc b/notificationagent.cc index 70358d0..58d27d4 100644 --- a/notificationagent.cc +++ b/notificationagent.cc @@ -23,7 +23,7 @@ NotificationAgent* NotificationAgent::instance() void NotificationAgent::peerFound(SAPPeer *peer) { - qDebug() << "Notification peer found" << peer->peerName(); + Q_UNUSED(peer); } void NotificationAgent::requestConnection(SAPConnectionRequest *request) diff --git a/notificationconn.cc b/notificationconn.cc index 7ac17f8..bfe719b 100644 --- a/notificationconn.cc +++ b/notificationconn.cc @@ -138,6 +138,11 @@ void NotificationConn::handleMessageReceived() #if SAILFISH void NotificationConn::handleNotification(watchfish::Notification *wfn) { + if (wfn->transient()) { + // Ignore this notification + return; + } + QString sender = wfn->sender(); short applicationId = _knownSenders.value(sender, 0); if (!applicationId) { |