diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2014-02-19 15:47:46 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2014-02-19 15:47:46 +0000 |
commit | 92d98c110e4879ce6ef1056e92ae71728f29f564 (patch) | |
tree | b5fd22b154eabd195588d1de88b88796873a9db1 /plugins/Dropbox/src/dropbox_services.cpp | |
parent | 36df84a13018c6c26e7cd1bb8e093dc54393aed7 (diff) |
Dropbox: fixed access request
git-svn-id: http://svn.miranda-ng.org/main/trunk@8180 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dropbox/src/dropbox_services.cpp')
-rw-r--r-- | plugins/Dropbox/src/dropbox_services.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/Dropbox/src/dropbox_services.cpp b/plugins/Dropbox/src/dropbox_services.cpp index 0524cff1c7..b61f9c54ad 100644 --- a/plugins/Dropbox/src/dropbox_services.cpp +++ b/plugins/Dropbox/src/dropbox_services.cpp @@ -72,9 +72,10 @@ INT_PTR CDropbox::SendMessage( WPARAM wParam, LPARAM lParam) INT_PTR CDropbox::RequeriedApiAccess(WPARAM wParam, LPARAM lParam)
{
int result = MessageBox(NULL, TranslateT("Are you sure you want to requeried access?"), TranslateT("Requeried access"), MB_YESNO | MB_ICONQUESTION);
- if (result == IDYES && g_dropbox->HasAccessToken())
+ if (result == IDYES)
{
- g_dropbox->DestroyAcceessToken();
+ if (HasAccessToken())
+ g_dropbox->DestroyAcceessToken();
g_dropbox->RequestAcceessToken();
}
|