From 3f63f0501e44c190c0d9c252c26272929442f07c Mon Sep 17 00:00:00 2001 From: Javier Date: Fri, 25 Dec 2015 23:42:21 +0100 Subject: ignore transient sailfish notifitications --- hostmanageragent.cc | 2 +- notificationagent.cc | 2 +- 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) { -- cgit v1.2.3