summaryrefslogtreecommitdiff
path: root/plugins/Dropbox/src/dropbox_services.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2016-03-15 10:10:51 +0000
committerAlexander Lantsev <aunsane@gmail.com>2016-03-15 10:10:51 +0000
commitccd3481caa5dda6816747901108166298c8037d9 (patch)
treee72418c55d54631c06c389a4179867525ad2b9e6 /plugins/Dropbox/src/dropbox_services.cpp
parent40989eb0a17169c3b2e44a51a7db91b1876bbd62 (diff)
Dropbox: fixed sending link after upload
git-svn-id: http://svn.miranda-ng.org/main/trunk@16484 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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);
}