From e53a47a7756e45ca8ea5802d6b0955ad82873e32 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 9 Mar 2018 14:17:40 +0300 Subject: more correct variant --- src/mir_app/src/clistevents.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/mir_app/src/clistevents.cpp b/src/mir_app/src/clistevents.cpp index 4a0edc1a89..b0046fad9a 100644 --- a/src/mir_app/src/clistevents.cpp +++ b/src/mir_app/src/clistevents.cpp @@ -317,6 +317,10 @@ int fnEventsProcessTrayDoubleClick(int index) } } + // by default use the first event + if (pEvent == nullptr) + pEvent = &g_cliEvents[0]; + // copy info in case that events' array could be shifted by the service call MCONTACT hContact = pEvent->hContact; MEVENT hDbEvent = pEvent->hDbEvent; -- cgit v1.2.3