diff options
author | George Hazan <ghazan@miranda.im> | 2022-06-10 11:22:10 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-06-10 11:22:10 +0300 |
commit | 47d5ff93323f788ed160c930617a2c997c803453 (patch) | |
tree | c085be51f4eb7c8c6aad71f4519f84312dba85ad /plugins/UserInfoEx/src/classPsTree.cpp | |
parent | 3c5f696829216c7a113f71ff9099178c11817aca (diff) |
UInfoEx: minor fix for condition
Diffstat (limited to 'plugins/UserInfoEx/src/classPsTree.cpp')
-rw-r--r-- | plugins/UserInfoEx/src/classPsTree.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/UserInfoEx/src/classPsTree.cpp b/plugins/UserInfoEx/src/classPsTree.cpp index ac023b5b83..3b486b8955 100644 --- a/plugins/UserInfoEx/src/classPsTree.cpp +++ b/plugins/UserInfoEx/src/classPsTree.cpp @@ -132,15 +132,14 @@ void CPsTree::Remove(HINSTANCE hInst) for (auto &it : _pages.rev_iter()) { if (it->Inst() == hInst) { - if (!bRemoved) { - TreeView_DeleteAllItems(_hWndTree); - bRemoved = true; - } + bRemoved = true; _pages.removeItem(&it); } } if (bRemoved) { + TreeView_DeleteAllItems(_hWndTree); + for (auto &it : _pages) it->Hti(nullptr); |