summaryrefslogtreecommitdiff
path: root/plugins/Scriver/src/msgoptions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Scriver/src/msgoptions.cpp')
-rw-r--r--plugins/Scriver/src/msgoptions.cpp12
1 files changed, 5 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");