diff options
author | George Hazan <ghazan@miranda.im> | 2018-04-23 22:54:20 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-04-23 22:54:27 +0300 |
commit | 0998b447f51c40d2300db7f673e080de20e8f0be (patch) | |
tree | 757efdb45a0dbae5ddbad640085ba0d97b1426cc /src | |
parent | 43cce689cfed348a2d97daf043708d15c4868597 (diff) |
fix for occasional crashes on exit
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/proto_accs.cpp | 7 |
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)
|