summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hostmanageragent.cc2
-rw-r--r--notificationagent.cc2
-rw-r--r--notificationconn.cc5
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) {