diff options
Diffstat (limited to 'plugins/WhenWasIt/src')
-rw-r--r-- | plugins/WhenWasIt/src/dlg_handlers.cpp | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/plugins/WhenWasIt/src/dlg_handlers.cpp b/plugins/WhenWasIt/src/dlg_handlers.cpp index 65ba3dcd34..8808b4b7b0 100644 --- a/plugins/WhenWasIt/src/dlg_handlers.cpp +++ b/plugins/WhenWasIt/src/dlg_handlers.cpp @@ -968,22 +968,15 @@ INT_PTR CALLBACK DlgProcUpcoming(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lPar return 0;
}
-void __cdecl OpenMessageWindowThread(void *data)
-{
- MCONTACT hContact = (MCONTACT)data;
- CallServiceSync(MS_MSG_SENDMESSAGE, hContact, 0);
- CallServiceSync("SRMsg/LaunchMessageWindow", hContact, 0);
-}
-
int HandlePopupClick(HWND hWnd, int action)
{
+ MCONTACT hContact;
+
switch (action) {
case 2: //OPEN MESSAGE WINDOW
- {
- MCONTACT hContact = (MCONTACT)PUGetContact(hWnd);
+ hContact = (MCONTACT)PUGetContact(hWnd);
if (hContact)
- HANDLE thread = mir_forkthread(OpenMessageWindowThread, (void*)hContact);
- }//fallthrough
+ CallServiceSync(MS_MSG_SENDMESSAGE, hContact, 0);
case 1: //DISMISS
PUDeletePopup(hWnd);
|