diff options
author | George Hazan <george.hazan@gmail.com> | 2023-12-12 16:55:55 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-12-12 16:55:55 +0300 |
commit | cecca857def5d185aac2f6371ba8f01ee91be4e0 (patch) | |
tree | cd6370efa7f6f33a76b66620cd0a5e97031d692c /src/mir_app | |
parent | a0b619e6a73483ef68c085a1b610aa86c8628e8f (diff) |
AddUser dialog displays garbage if no parent window is set
Diffstat (limited to 'src/mir_app')
-rw-r--r-- | src/mir_app/src/addcontact.cpp | 9 |
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();
}
|