From 7c41ab39dd92e9e7961615dcd19c0ffcc260f62b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 3 Apr 2018 20:06:38 +0300 Subject: we shall create missing icons (or destroy unneeded ones) after applying toolbar options --- src/mir_app/src/srmm_base.cpp | 4 ++++ src/mir_app/src/srmm_toolbar.cpp | 1 + 2 files changed, 5 insertions(+) (limited to 'src/mir_app') diff --git a/src/mir_app/src/srmm_base.cpp b/src/mir_app/src/srmm_base.cpp index 3991b8e324..0275fb1c04 100644 --- a/src/mir_app/src/srmm_base.cpp +++ b/src/mir_app/src/srmm_base.cpp @@ -677,6 +677,10 @@ INT_PTR CSrmmBaseDialog::DlgProc(UINT msg, WPARAM wParam, LPARAM lParam) } break; + case WM_CBD_RECREATE: + Srmm_CreateToolbarIcons(m_hwnd, isChat() ? BBBF_ISCHATBUTTON : BBBF_ISIMBUTTON); + break; + case WM_NOTIFY: LPNMHDR hdr = (LPNMHDR)lParam; if (hdr->hwndFrom == m_log.GetHwnd() && hdr->code == EN_LINK) { diff --git a/src/mir_app/src/srmm_toolbar.cpp b/src/mir_app/src/srmm_toolbar.cpp index a92343c2da..f87fdf1376 100644 --- a/src/mir_app/src/srmm_toolbar.cpp +++ b/src/mir_app/src/srmm_toolbar.cpp @@ -434,6 +434,7 @@ static void CB_ReInitCustomButtons() } qsort(arButtonsList.getArray(), arButtonsList.getCount(), sizeof(void*), sstSortButtons); + WindowList_Broadcast(g_hWindowList, WM_CBD_RECREATE, 0, 0); WindowList_Broadcast(g_hWindowList, WM_CBD_UPDATED, 0, 0); WindowList_Broadcast(g_hWindowList, WM_CBD_LOADICONS, 0, 0); } -- cgit v1.2.3