diff options
author | George Hazan <ghazan@miranda.im> | 2018-05-13 18:38:54 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-05-13 18:38:54 +0300 |
commit | 24a76259e2c527e107f1c1b969b501d63a8e29f5 (patch) | |
tree | ba96a9b44ddbfcd6aa0d0fa2a8886305513bbb97 /plugins/Scriver/src/msgdialog.cpp | |
parent | 80cf274495224307b9c881c538d6d649055f66e8 (diff) |
related to #1354 (unhides the hidden database setting that sets the title format for Scriver)
Diffstat (limited to 'plugins/Scriver/src/msgdialog.cpp')
-rw-r--r-- | plugins/Scriver/src/msgdialog.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/Scriver/src/msgdialog.cpp b/plugins/Scriver/src/msgdialog.cpp index a9110a2e03..8bc0ff50cc 100644 --- a/plugins/Scriver/src/msgdialog.cpp +++ b/plugins/Scriver/src/msgdialog.cpp @@ -781,9 +781,8 @@ static const wchar_t *titleTokenNames[] = { L"%name%", L"%status%", L"%statusmsg void CSrmmWindow::UpdateTitle()
{
CMStringW wszTitle;
- ptrW tmplt(db_get_wsa(0, SRMM_MODULE, SRMSGSET_WINDOWTITLE));
- if (tmplt != nullptr)
- wszTitle = tmplt;
+ if (g_dat.wszTitleFormat[0])
+ wszTitle = g_dat.wszTitleFormat;
else
wszTitle = L"%name% - ";
@@ -803,7 +802,7 @@ void CSrmmWindow::UpdateTitle() }
}
- if (tmplt == nullptr)
+ if (g_dat.wszTitleFormat[0] == 0)
wszTitle.Append(TranslateT("Message session"));
TitleBarData tbd = {};
|