summaryrefslogtreecommitdiff
path: root/plugins/Dropbox
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2014-04-01 19:43:18 +0000
committerAlexander Lantsev <aunsane@gmail.com>2014-04-01 19:43:18 +0000
commit2fc85efad287656b0694c4f16b3c11af8435a06b (patch)
treecb44a916223219cab679287388131ab7aaf7184f /plugins/Dropbox
parentbf48a4f3fd56bce9753b73714e224b3e5145a1e1 (diff)
Dropbox: when WPARAM is NULL MS_DROPBOX_SEND_FILE sends url to Dropbox bot
git-svn-id: http://svn.miranda-ng.org/main/trunk@8818 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dropbox')
-rw-r--r--plugins/Dropbox/src/dropbox_services.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/Dropbox/src/dropbox_services.cpp b/plugins/Dropbox/src/dropbox_services.cpp
index c8ab1957f7..db2e2c8be2 100644
--- a/plugins/Dropbox/src/dropbox_services.cpp
+++ b/plugins/Dropbox/src/dropbox_services.cpp
@@ -201,6 +201,9 @@ INT_PTR CDropbox::SendFileToDropbox(void *obj, WPARAM hContact, LPARAM lParam)
wchar_t *filePath = (wchar_t*)lParam;
+ if (hContact == NULL)
+ hContact = instance->GetDefaultContact();
+
FileTransferParam *ftp = new FileTransferParam();
ftp->withVisualisation = false;
ftp->pfts.flags |= PFTS_SENDING;