summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-09-29 11:49:44 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-09-29 11:49:44 +0300
commit13627600541c19643b96bd4c7b3a3d9fd92040f9 (patch)
tree22cbed564e961cae032249aa6f75187772b8585b /plugins/TabSRMM/src
parent965f529d061ef007545061fa0c7271a7ff74b98d (diff)
fixes #3694 (tabSRMM: при выборе стороннего журнала пропадает вкладка "Журнал")
Diffstat (limited to 'plugins/TabSRMM/src')
-rw-r--r--plugins/TabSRMM/src/msgoptions.cpp16
-rw-r--r--plugins/TabSRMM/src/resource.h1
2 files changed, 10 insertions, 7 deletions
diff --git a/plugins/TabSRMM/src/msgoptions.cpp b/plugins/TabSRMM/src/msgoptions.cpp
index 2d22090b74..52b53456e9 100644
--- a/plugins/TabSRMM/src/msgoptions.cpp
+++ b/plugins/TabSRMM/src/msgoptions.cpp
@@ -742,8 +742,8 @@ class COptLogDlg : public CDlgBase
// party plugin.
public:
- COptLogDlg() :
- CDlgBase(g_plugin, IDD_OPT_MSGLOG),
+ COptLogDlg(int iDlgId) :
+ CDlgBase(g_plugin, iDlgId),
logOpts(this, IDC_LOGOPTIONS),
btnModify(this, IDC_MODIFY),
btnRtlModify(this, IDC_RTLMODIFY),
@@ -888,6 +888,10 @@ public:
}
};
+class COptHistDlg : public CDlgBase
+{
+};
+
/////////////////////////////////////////////////////////////////////////////////////////
// typing notify options
@@ -1480,11 +1484,9 @@ int OptInitialise(WPARAM wParam, LPARAM lParam)
odp.pDialog = new COptContainersDlg();
g_plugin.addOptions(wParam, &odp);
- if (!Srmm_IsCustomLogUsed()) {
- odp.szTab.a = LPGEN("Message log");
- odp.pDialog = new COptLogDlg();
- g_plugin.addOptions(wParam, &odp);
- }
+ odp.szTab.a = LPGEN("Message log");
+ odp.pDialog = new COptLogDlg(Srmm_IsCustomLogUsed() ? IDD_OPT_MSGHIST : IDD_OPT_MSGLOG);
+ g_plugin.addOptions(wParam, &odp);
odp.szTab.a = LPGEN("Advanced tweaks");
odp.pDialog = new COptAdvancedDlg();
diff --git a/plugins/TabSRMM/src/resource.h b/plugins/TabSRMM/src/resource.h
index 87036e4cc9..ef89b80bd7 100644
--- a/plugins/TabSRMM/src/resource.h
+++ b/plugins/TabSRMM/src/resource.h
@@ -53,6 +53,7 @@
#define IDD_CHOOSESTATUSMODES 310
#define IDD_SKINTABDIALOG 312
#define IDD_OPT_SKIN 313
+#define IDD_OPT_MSGHIST 314
#define IDD_OPTIONS_PLUS 333
#define IDD_CHANNEL 401
#define IDD_OPTIONS1 402