diff options
author | George Hazan <ghazan@miranda.im> | 2018-03-09 14:17:40 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-03-09 14:17:40 +0300 |
commit | e53a47a7756e45ca8ea5802d6b0955ad82873e32 (patch) | |
tree | 0ee0f2c5d751b2fb3f2bd50d4ec593e441bc7c94 /src | |
parent | 2d594691c91bf8ed3c1d3339333379a9356b4156 (diff) |
more correct variant
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;
|