diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/clistevents.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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;
|