summaryrefslogtreecommitdiff
path: root/plugins/Dropbox/src/dropbox_events.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Dropbox/src/dropbox_events.cpp')
-rw-r--r--plugins/Dropbox/src/dropbox_events.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/Dropbox/src/dropbox_events.cpp b/plugins/Dropbox/src/dropbox_events.cpp
index 9ab3242645..8da1f74270 100644
--- a/plugins/Dropbox/src/dropbox_events.cpp
+++ b/plugins/Dropbox/src/dropbox_events.cpp
@@ -58,9 +58,11 @@ int CDropbox::OnPreShutdown(WPARAM, LPARAM)
int CDropbox::OnContactDeleted(WPARAM hContact, LPARAM)
{
if (mir_strcmpi(GetContactProto(hContact), MODULE) == 0)
+ {
if (HasAccessToken())
DestroyAccessToken();
-
+ hDefaultContact = NULL;
+ }
return 0;
}