summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-12-29 19:06:40 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-12-29 19:06:40 +0300
commitbe0f5a4f79d84c83d5a835a0753a604b06ee6d0a (patch)
tree78d89b1a5fc1b5f504d511ac0d9cdbc2903f225c /plugins/TabSRMM
parentd1ed4b65722061eaca181b8a7fde16bc416a0cca (diff)
fixes #4081 (tabSRMM: скрывать вкладку "Журнал" в индивидуальных настройках контакта, если для приватов выбран сторонний журнал)
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r--plugins/TabSRMM/src/userprefs.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/TabSRMM/src/userprefs.cpp b/plugins/TabSRMM/src/userprefs.cpp
index 70ff19332e..3028a91092 100644
--- a/plugins/TabSRMM/src/userprefs.cpp
+++ b/plugins/TabSRMM/src/userprefs.cpp
@@ -315,6 +315,7 @@ public:
m_hContact(hContact),
m_tab(this, IDC_OPTIONSTAB)
{
+ m_tab.SetPageOwner();
}
bool OnInitDialog() override
@@ -326,7 +327,8 @@ public:
SetCaption(szBuffer);
m_tab.AddPage(TranslateT("General"), nullptr, new CUserPrefsOptDlg(m_hContact));
- m_tab.AddPage(TranslateT("Message Log"), nullptr, new CUserPrefsLogDlg(m_hContact));
+ if (!Srmm_IsCustomLogUsed())
+ m_tab.AddPage(TranslateT("Message Log"), nullptr, new CUserPrefsLogDlg(m_hContact));
return true;
}