summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-12-22 21:03:51 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-12-22 21:03:51 +0300
commit015dfdfbd64d6aaa7e28e9c12979501136137a1b (patch)
treef5f7f987e03ac8e7755079f7b16c71f41ce47ebc /src
parent38d2ffd33244be6145976c7a30b87fa6fabc565d (diff)
fixes #4812 (Clist_modern: запрос авторизации не пропадает)
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/clistevents.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/mir_app/src/clistevents.cpp b/src/mir_app/src/clistevents.cpp
index 3d38008d19..9feaa6181c 100644
--- a/src/mir_app/src/clistevents.cpp
+++ b/src/mir_app/src/clistevents.cpp
@@ -302,13 +302,11 @@ MIR_APP_DLL(CListEvent *) Clist_GetEvent(MCONTACT hContact, int idx)
int EventsProcessContactDoubleClick(MCONTACT hContact)
{
if (auto *pEvent = Clist_GetEvent(hContact, 0)) {
- if (CallService(pEvent->pszService, 0, (LPARAM)pEvent) == CALLSERVICE_NOTFOUND)
- return 1;
-
- // if the event is still alive, free it
- if (g_cliEvents.indexOf(pEvent))
- g_clistApi.pfnFreeEvent(pEvent);
- return 0;
+ MEVENT hEvent = pEvent->hDbEvent;
+ if (CallService(pEvent->pszService, 0, (LPARAM)pEvent) != CALLSERVICE_NOTFOUND) {
+ Clist_RemoveEvent(hContact, hEvent);
+ return 0;
+ }
}
return 1;