summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Swift/QtUI/QtSubscriptionRequestWindow.cpp1
-rw-r--r--Swiften/Events/SubscriptionRequestEvent.h4
2 files changed, 5 insertions, 0 deletions
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_;