summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-09-05 14:45:30 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-09-05 14:45:30 +0300
commitc363b436996e3dcef1d69e8e261534914bd04b65 (patch)
treedbc59f1692529f1f229d65236510d4671a16f4d0 /src
parentac572b40da8dd4e1c26656180ae6ab713911ae9e (diff)
no need to destroy non-existing icon
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/clisttray.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mir_app/src/clisttray.cpp b/src/mir_app/src/clisttray.cpp
index 0f18e7329c..5e5b87015e 100644
--- a/src/mir_app/src/clisttray.cpp
+++ b/src/mir_app/src/clisttray.cpp
@@ -555,9 +555,10 @@ MIR_APP_DLL(void) Clist_TrayIconIconsChanged()
{
initcheck;
mir_cslock lck(trayLockCS);
-
- Clist_TrayIconDestroy(g_clistApi.hwndContactList);
- g_clistApi.pfnTrayIconInit(g_clistApi.hwndContactList);
+ if (g_clistApi.hwndContactList != nullptr) {
+ Clist_TrayIconDestroy(g_clistApi.hwndContactList);
+ g_clistApi.pfnTrayIconInit(g_clistApi.hwndContactList);
+ }
}
static UINT_PTR autoHideTimerId;