summaryrefslogtreecommitdiff
path: root/plugins/Dropbox/src/dropbox_services.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Dropbox/src/dropbox_services.cpp')
-rw-r--r--plugins/Dropbox/src/dropbox_services.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/plugins/Dropbox/src/dropbox_services.cpp b/plugins/Dropbox/src/dropbox_services.cpp
index 08774cef96..ead7cac8f1 100644
--- a/plugins/Dropbox/src/dropbox_services.cpp
+++ b/plugins/Dropbox/src/dropbox_services.cpp
@@ -70,8 +70,16 @@ INT_PTR CDropbox::ProtoSendFileInterceptor(WPARAM wParam, LPARAM lParam)
const char *proto = GetContactProto(pccsd->hContact);
if (!IsAccountIntercepted(proto))
- return CALLSERVICE_NOTFOUND;
+ {
+ auto it = interceptedContacts.find(pccsd->hContact);
+ if (it == interceptedContacts.end())
+ return CALLSERVICE_NOTFOUND;
+ }
+ auto it = interceptedContacts.find(pccsd->hContact);
+ if (it != interceptedContacts.end())
+ interceptedContacts.erase(it);
+
return ProtoSendFile(wParam, lParam);
}