From 47d5ff93323f788ed160c930617a2c997c803453 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 10 Jun 2022 11:22:10 +0300 Subject: UInfoEx: minor fix for condition --- plugins/UserInfoEx/src/classPsTree.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'plugins/UserInfoEx/src/classPsTree.cpp') 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); -- cgit v1.2.3