From 6209bdcb80b6fb091bddd82b551435523e76a360 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Sun, 30 Jan 2011 16:14:38 +0100
Subject: Fixed corner case of profile controller.


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();
 }
 
-- 
cgit v0.10.2-6-g49f6