diff options
author | George Hazan <george.hazan@gmail.com> | 2015-05-11 16:39:06 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-05-11 16:39:06 +0000 |
commit | 6f7054d8f6c14e032a45a42555d4ab097fc82863 (patch) | |
tree | 1cc7d5ae2c4b77743982fa55578612ce27ce150e /plugins/Dropbox/src/dropbox_menus.cpp | |
parent | ac73a9c3d9b5f72f4ee7c0d635daf47db3ef1d50 (diff) |
- STL removed;
- code optimization and restructuring;
- warning fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@13549 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dropbox/src/dropbox_menus.cpp')
-rw-r--r-- | plugins/Dropbox/src/dropbox_menus.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/plugins/Dropbox/src/dropbox_menus.cpp b/plugins/Dropbox/src/dropbox_menus.cpp index 3130555d3d..7255d80ff3 100644 --- a/plugins/Dropbox/src/dropbox_menus.cpp +++ b/plugins/Dropbox/src/dropbox_menus.cpp @@ -3,23 +3,13 @@ INT_PTR CDropbox::SendFilesToDropboxCommand(void *obj, WPARAM hContact, LPARAM)
{
CDropbox *instance = (CDropbox*)obj;
-
if (!instance->HasAccessToken())
return 1;
instance->hTransferContact = hContact;
+ instance->hTransferWindow = (HWND)CallService(MS_FILE_SENDFILE, instance->GetDefaultContact(), 0);
- HWND hwnd = (HWND)CallService(MS_FILE_SENDFILE, instance->GetDefaultContact(), 0);
-
- instance->dcftp[hwnd] = hContact;
-
- BBButton bbd = { sizeof(bbd) };
- bbd.pszModuleName = MODULE;
- bbd.dwButtonID = BBB_ID_FILE_SEND;
- bbd.bbbFlags = BBSF_DISABLED;
-
- CallService(MS_BB_SETBUTTONSTATE, hContact, (LPARAM)&bbd);
-
+ DisableSrmmButton(hContact);
return 0;
}
|