diff options
author | George Hazan <george.hazan@gmail.com> | 2023-09-29 11:49:44 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-09-29 11:49:44 +0300 |
commit | 13627600541c19643b96bd4c7b3a3d9fd92040f9 (patch) | |
tree | 22cbed564e961cae032249aa6f75187772b8585b /plugins/Scriver/src | |
parent | 965f529d061ef007545061fa0c7271a7ff74b98d (diff) |
fixes #3694 (tabSRMM: при выборе стороннего журнала пропадает вкладка "Журнал")
Diffstat (limited to 'plugins/Scriver/src')
-rw-r--r-- | plugins/Scriver/src/msgoptions.cpp | 12 | ||||
-rw-r--r-- | plugins/Scriver/src/resource.h | 1 |
2 files changed, 6 insertions, 7 deletions
diff --git a/plugins/Scriver/src/msgoptions.cpp b/plugins/Scriver/src/msgoptions.cpp index 2a1975e5e6..9e60d96540 100644 --- a/plugins/Scriver/src/msgoptions.cpp +++ b/plugins/Scriver/src/msgoptions.cpp @@ -532,8 +532,8 @@ class CLogOptionsDlg : public CBaseOptionDlg }
public:
- CLogOptionsDlg() :
- CBaseOptionDlg(IDD_OPT_MSGLOG),
+ CLogOptionsDlg(int iDlgId) :
+ CBaseOptionDlg(iDlgId),
m_rtf(this, IDC_SRMM_LOG),
m_fonts(this, IDC_FONTSCOLORS),
chkLoadTime(this, IDC_LOADTIME),
@@ -805,11 +805,9 @@ int OptInitialise(WPARAM wParam, LPARAM) odp.szTab.a = LPGEN("Layout");
g_plugin.addOptions(wParam, &odp);
- if (!Srmm_IsCustomLogUsed()) {
- odp.pDialog = new CLogOptionsDlg();
- odp.szTab.a = LPGEN("Event log");
- g_plugin.addOptions(wParam, &odp);
- }
+ odp.pDialog = new CLogOptionsDlg(Srmm_IsCustomLogUsed() ? IDD_OPT_MSGHIST : IDD_OPT_MSGLOG);
+ odp.szTab.a = LPGEN("Event log");
+ g_plugin.addOptions(wParam, &odp);
////////////////////////////////////////////////////////////////////////////////////////
odp.szGroup.a = LPGEN("Message sessions");
diff --git a/plugins/Scriver/src/resource.h b/plugins/Scriver/src/resource.h index fc0864d5c6..997cb99440 100644 --- a/plugins/Scriver/src/resource.h +++ b/plugins/Scriver/src/resource.h @@ -10,6 +10,7 @@ #define IDD_INFOBAR 104
#define IDD_OPT_MSGDLG 111
#define IDD_OPT_MSGLOG 112
+#define IDD_OPT_MSGHIST 113
#define IDD_OPT_MSGTYPE 114
#define IDD_OPT_MSGTABS 115
#define IDD_OPT_LAYOUT 116
|