summaryrefslogtreecommitdiff
path: root/plugins/Dropbox/src/dropbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Dropbox/src/dropbox.cpp')
-rw-r--r--plugins/Dropbox/src/dropbox.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/Dropbox/src/dropbox.cpp b/plugins/Dropbox/src/dropbox.cpp
index fa31010600..63b779c59c 100644
--- a/plugins/Dropbox/src/dropbox.cpp
+++ b/plugins/Dropbox/src/dropbox.cpp
@@ -6,10 +6,8 @@ CDropbox::CDropbox() : transfers(1, HandleKeySortT)
HookEvent(ME_SYSTEM_PRESHUTDOWN, OnPreShutdown);
HookEventObj(ME_SYSTEM_MODULESLOADED, GlobalEvent<&CDropbox::OnModulesLoaded>, this);
- hFileSentEventHook = CreateHookableEvent(ME_DROPBOX_SENT);
hUploadedEventHook = CreateHookableEvent(ME_DROPBOX_UPLOADED);
- CreateServiceFunctionObj(MS_DROPBOX_SEND_FILE, GlobalService<&CDropbox::SendFileToDropbox>, this);
CreateServiceFunctionObj(MS_DROPBOX_UPLOAD, GlobalService<&CDropbox::UploadToDropbox>, this);
CreateServiceFunctionObj(MS_DROPBOX_UPLOADASYNC, GlobalService<&CDropbox::UploadToDropboxAsync>, this);
@@ -41,7 +39,7 @@ CDropbox::CDropbox() : transfers(1, HandleKeySortT)
CDropbox::~CDropbox()
{
- DestroyHookableEvent(hFileSentEventHook);
+ DestroyHookableEvent(hUploadedEventHook);
}
MCONTACT CDropbox::GetDefaultContact()