diff options
author | George Hazan <ghazan@miranda.im> | 2017-02-04 19:28:01 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-02-04 19:28:01 +0300 |
commit | 53368b53c6d0721792d6ee55d46dba4390a18c6b (patch) | |
tree | d0b78ab3fb339cbd6d4fd76c278fba82c5c2b457 /src | |
parent | 331ba950bb27975c26ec1b54a9f47689aee0003b (diff) |
fix for launching Account Manager many times
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/proto_opts.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mir_app/src/proto_opts.cpp b/src/mir_app/src/proto_opts.cpp index 7a38f97d9e..0cf1180f8d 100644 --- a/src/mir_app/src/proto_opts.cpp +++ b/src/mir_app/src/proto_opts.cpp @@ -981,10 +981,12 @@ void CAccountListCtrl::InitRename() static INT_PTR OptProtosShow(WPARAM, LPARAM)
{
- if (!pAccMgr)
+ if (!pAccMgr) {
pAccMgr = new CAccountManagerDlg();
+ pAccMgr->Show();
+ }
+ else ShowWindow(pAccMgr->GetHwnd(), SW_RESTORE);
- pAccMgr->Show(SW_RESTORE);
SetForegroundWindow(pAccMgr->GetHwnd());
SetActiveWindow(pAccMgr->GetHwnd());
return 0;
|