summaryrefslogtreecommitdiff
path: root/src/mir_app
diff options
context:
space:
mode:
Diffstat (limited to 'src/mir_app')
-rw-r--r--src/mir_app/src/proto_opts.cpp6
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;