summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/Controllers/ProfileController.cpp')
-rw-r--r--Swift/Controllers/ProfileController.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Swift/Controllers/ProfileController.cpp b/Swift/Controllers/ProfileController.cpp
index 9667d89..65443e6 100644
--- a/Swift/Controllers/ProfileController.cpp
+++ b/Swift/Controllers/ProfileController.cpp
@@ -76,6 +76,9 @@ void ProfileController::handleOwnVCardChanged(VCard::ref vcard) {
void ProfileController::setAvailable(bool b) {
available = b;
+ if (!available) {
+ pendingSetVCardRequest.reset();
+ }
updateDialogStatus();
}