summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mir_app/src/addcontact.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/mir_app/src/addcontact.cpp b/src/mir_app/src/addcontact.cpp
index 29bc8da968..4e1c822bec 100644
--- a/src/mir_app/src/addcontact.cpp
+++ b/src/mir_app/src/addcontact.cpp
@@ -251,10 +251,7 @@ MIR_APP_DLL(void) Contact::AddBySearch(const char *szProto, struct PROTOSEARCHRE
}
};
- if (hwndParent != nullptr) {
- CAddBySearch dlg(szProto, psr);
- dlg.SetParent(hwndParent);
- dlg.DoModal();
- }
- else (new CAddBySearch(szProto, psr))->Show();
+ CAddBySearch dlg(szProto, psr);
+ dlg.SetParent(hwndParent);
+ dlg.DoModal();
}