From 3c45ed7c3b62609824c0ea50f1ce9c00bbe00849 Mon Sep 17 00:00:00 2001 From: Kevin Smith Date: Wed, 15 Sep 2010 14:36:38 +0100 Subject: Mark a subscription request as read if you defer it. Resolves: #505 diff --git a/Swift/QtUI/QtSubscriptionRequestWindow.cpp b/Swift/QtUI/QtSubscriptionRequestWindow.cpp index 59aeaae..e201808 100644 --- a/Swift/QtUI/QtSubscriptionRequestWindow.cpp +++ b/Swift/QtUI/QtSubscriptionRequestWindow.cpp @@ -56,6 +56,7 @@ void QtSubscriptionRequestWindow::handleNo() { } void QtSubscriptionRequestWindow::handleDefer() { + event_->defer(); delete this; } diff --git a/Swiften/Events/SubscriptionRequestEvent.h b/Swiften/Events/SubscriptionRequestEvent.h index ba3522b..4a998d7 100644 --- a/Swiften/Events/SubscriptionRequestEvent.h +++ b/Swiften/Events/SubscriptionRequestEvent.h @@ -34,6 +34,10 @@ namespace Swift { conclude(); }; + void defer() { + conclude(); + } + private: JID jid_; String reason_; -- cgit v0.10.2-6-g49f6