From 0998b447f51c40d2300db7f673e080de20e8f0be Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 23 Apr 2018 22:54:20 +0300 Subject: fix for occasional crashes on exit --- src/mir_app/src/proto_accs.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mir_app/src/proto_accs.cpp b/src/mir_app/src/proto_accs.cpp index 405d691f6e..9a482dae82 100644 --- a/src/mir_app/src/proto_accs.cpp +++ b/src/mir_app/src/proto_accs.cpp @@ -377,10 +377,11 @@ void DeactivateAccount(PROTOACCOUNT *pa, int flags) pa->bAccMgrUIChanged = FALSE; } - if (flags & DAF_DYNAMIC) + if (flags & DAF_DYNAMIC) { pa->bDynDisabled = true; - - NotifyEventHooks(hAccListChanged, PRAC_REMOVED, (LPARAM)pa); + NotifyEventHooks(hAccListChanged, PRAC_REMOVED, (LPARAM)pa); + } + else pa->iIconBase = -1; if (pa->ppro == nullptr) { if (flags & DAF_ERASE) -- cgit v1.2.3