summaryrefslogtreecommitdiff
path: root/plugins/SendScreenshotPlus/src/CSendDropbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/SendScreenshotPlus/src/CSendDropbox.cpp')
-rw-r--r--plugins/SendScreenshotPlus/src/CSendDropbox.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/SendScreenshotPlus/src/CSendDropbox.cpp b/plugins/SendScreenshotPlus/src/CSendDropbox.cpp
index 400deea5fb..0b381b8964 100644
--- a/plugins/SendScreenshotPlus/src/CSendDropbox.cpp
+++ b/plugins/SendScreenshotPlus/src/CSendDropbox.cpp
@@ -66,6 +66,8 @@ void CSendDropbox::SendThread()
//m_bSilent = true;
m_hDropHook = HookEventObj(ME_DROPBOX_SENT, OnDropSend, this);
WaitForSingleObject(m_hEvent, INFINITE);
+ if (m_URL)
+ svcSendMsgExit(m_URL);
}
int CSendDropbox::OnDropSend(void *obj, WPARAM, LPARAM lParam)
@@ -76,7 +78,6 @@ int CSendDropbox::OnDropSend(void *obj, WPARAM, LPARAM lParam)
{
UnhookEvent(self->m_hDropHook);
self->m_URL = mir_strdup(info->data[0]);
- self->svcSendMsgExit(self->m_URL);
SetEvent(self->m_hEvent);
}
return 0;