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 | |
parent | 900b9d84b4accb950d186a71185ff796ba98c165 (diff) |
ICQ-WIM: no need to launch this dialog twice
Diffstat (limited to 'protocols/ICQ-WIM/src')
-rw-r--r-- | protocols/ICQ-WIM/src/options.cpp | 10 | ||||
-rw-r--r-- | protocols/ICQ-WIM/src/proto.h | 3 |
2 files changed, 10 insertions, 3 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; } ///////////////////////////////////////////////////////////////////////////////////////// diff --git a/protocols/ICQ-WIM/src/proto.h b/protocols/ICQ-WIM/src/proto.h index 15091e3fd3..6056382e89 100644 --- a/protocols/ICQ-WIM/src/proto.h +++ b/protocols/ICQ-WIM/src/proto.h @@ -250,7 +250,8 @@ class CIcqProto : public PROTO<CIcqProto> CMStringA m_szMailBox; bool m_bIgnoreListEmpty = true; - bool m_bRememberPwd = false; // store password in a database + bool m_bRememberPwd; // store password in a database + bool m_bDlgActive; //////////////////////////////////////////////////////////////////////////////////////// // group chats |