diff options
author | George Hazan <ghazan@miranda.im> | 2022-10-31 22:06:55 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-10-31 22:06:55 +0300 |
commit | f2eb27dfc34bdc7657e9f032161d80b0a8feef26 (patch) | |
tree | d07145699009b95d0fe4b3d0373f9a91487c3568 /protocols/WhatsApp/src/options.cpp | |
parent | 476aa34eeec80dc9b1b15b48ef5db84501dcae42 (diff) |
fixes #3234 completely
Diffstat (limited to 'protocols/WhatsApp/src/options.cpp')
-rw-r--r-- | protocols/WhatsApp/src/options.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/protocols/WhatsApp/src/options.cpp b/protocols/WhatsApp/src/options.cpp index 40b1bd4b74..0da3576456 100644 --- a/protocols/WhatsApp/src/options.cpp +++ b/protocols/WhatsApp/src/options.cpp @@ -32,6 +32,13 @@ public: CreateLink(chkHideChats, ppro->m_bHideGroupchats); } + bool OnInitDialog() override + { + if (!m_proto->getMStringA(DBKEY_ID).IsEmpty()) + edtDevName.Disable(); + return true; + } + bool OnApply() override { if (mir_wstrlen(m_proto->m_wszNick)) { |