diff options
author | George Hazan <ghazan@miranda.im> | 2019-07-17 19:10:59 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-07-17 19:10:59 +0300 |
commit | 9451639c7300d806afe81ef5dc680f8f4472f6f8 (patch) | |
tree | ee4b4d8a2271b2d4e6df80c158c1974d2a5d6e5a /protocols/ICQ-WIM/src/options.cpp | |
parent | 900b9d84b4accb950d186a71185ff796ba98c165 (diff) |
ICQ-WIM: no need to launch this dialog twice
Diffstat (limited to 'protocols/ICQ-WIM/src/options.cpp')
-rw-r--r-- | protocols/ICQ-WIM/src/options.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/protocols/ICQ-WIM/src/options.cpp b/protocols/ICQ-WIM/src/options.cpp index 55428358d7..957c7002d6 100644 --- a/protocols/ICQ-WIM/src/options.cpp +++ b/protocols/ICQ-WIM/src/options.cpp @@ -35,7 +35,7 @@ public: bool OnInitDialog() override { - chkSave.SetState(m_proto->m_bRememberPwd); + chkSave.SetState(m_proto->getBool("RememberPass")); Window_SetIcon_IcoLib(m_hwnd, m_proto->m_hProtoIcon); return true; } @@ -64,7 +64,13 @@ bool CIcqProto::RetrievePassword() return true; } - return CIcqEnterLoginDlg(this).DoModal() == IDOK; + if (m_bDlgActive) + return false; + + m_bDlgActive = true; + bool bRet = CIcqEnterLoginDlg(this).DoModal() == IDOK; + m_bDlgActive = false; + return bRet; } ///////////////////////////////////////////////////////////////////////////////////////// |