From ccd3481caa5dda6816747901108166298c8037d9 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Tue, 15 Mar 2016 10:10:51 +0000 Subject: Dropbox: fixed sending link after upload git-svn-id: http://svn.miranda-ng.org/main/trunk@16484 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Dropbox/src/dropbox_services.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'plugins/Dropbox/src/dropbox_services.cpp') 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); } -- cgit v1.2.3