summaryrefslogtreecommitdiff
path: root/plugins/UserInfoEx/src/classPsTree.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-06-10 11:22:10 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-06-10 11:22:10 +0300
commit47d5ff93323f788ed160c930617a2c997c803453 (patch)
treec085be51f4eb7c8c6aad71f4519f84312dba85ad /plugins/UserInfoEx/src/classPsTree.cpp
parent3c5f696829216c7a113f71ff9099178c11817aca (diff)
UInfoEx: minor fix for condition
Diffstat (limited to 'plugins/UserInfoEx/src/classPsTree.cpp')
-rw-r--r--plugins/UserInfoEx/src/classPsTree.cpp7
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);