diff options
author | George Hazan <george.hazan@gmail.com> | 2024-12-22 21:03:51 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-12-22 21:03:51 +0300 |
commit | 015dfdfbd64d6aaa7e28e9c12979501136137a1b (patch) | |
tree | f5f7f987e03ac8e7755079f7b16c71f41ce47ebc /src | |
parent | 38d2ffd33244be6145976c7a30b87fa6fabc565d (diff) |
fixes #4812 (Clist_modern: запрос авторизации не пропадает)
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/clistevents.cpp | 12 |
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;
|