From f2eb27dfc34bdc7657e9f032161d80b0a8feef26 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 31 Oct 2022 22:06:55 +0300 Subject: fixes #3234 completely --- protocols/WhatsApp/src/options.cpp | 7 +++++++ protocols/WhatsApp/src/resource.h | 1 + 2 files changed, 8 insertions(+) (limited to 'protocols/WhatsApp/src') 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)) { diff --git a/protocols/WhatsApp/src/resource.h b/protocols/WhatsApp/src/resource.h index 8b20f44e5c..e245d1deec 100644 --- a/protocols/WhatsApp/src/resource.h +++ b/protocols/WhatsApp/src/resource.h @@ -9,6 +9,7 @@ #define IDC_HIDECHATS 1000 #define IDC_DEFGROUP 1001 #define IDC_QRPIC 1002 +#define IDC_DEFGROUP2 1002 #define IDC_CLIST 1003 #define IDC_NEWJID 1004 #define IDC_NICK 1005 -- cgit v1.2.3