diff options
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();
}
|