summaryrefslogtreecommitdiff
path: root/src/core/stduserinfo
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/stduserinfo')
-rw-r--r--src/core/stduserinfo/src/userinfo.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/stduserinfo/src/userinfo.cpp b/src/core/stduserinfo/src/userinfo.cpp
index 96d15c8805..a8757ab008 100644
--- a/src/core/stduserinfo/src/userinfo.cpp
+++ b/src/core/stduserinfo/src/userinfo.cpp
@@ -119,10 +119,8 @@ class CUserInfoDlg : public CDlgBase
for (auto &it : items.rev_iter()) {
it->pDialog->SetContact(hContact);
- if (!it->pDialog->IsEmpty())
- continue;
-
- delete items.removeItem(&it);
+ if (it->pDialog->IsEmpty())
+ delete items.removeItem(&it);
}
if (items.getCount() == 0)