summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mir_app/src/proto_accs.cpp7
1 files 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)