summaryrefslogtreecommitdiff
path: root/plugins/UserInfoEx/src/classPsTree.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-05-20 15:08:48 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-05-20 15:08:48 +0300
commit8a74e7495ce5ad39de4f5c25121a84d35df90c36 (patch)
tree03e5b4870f09a3163306740c2eebee47bc15b042 /plugins/UserInfoEx/src/classPsTree.cpp
parentc5bf7d6123dd1c3b82ccb8fdb1b068077e9d56d4 (diff)
CMPlugin to receive a reference to PLUGININFOEX
Diffstat (limited to 'plugins/UserInfoEx/src/classPsTree.cpp')
-rw-r--r--plugins/UserInfoEx/src/classPsTree.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/UserInfoEx/src/classPsTree.cpp b/plugins/UserInfoEx/src/classPsTree.cpp
index c2eeb3d210..e40b6f6bff 100644
--- a/plugins/UserInfoEx/src/classPsTree.cpp
+++ b/plugins/UserInfoEx/src/classPsTree.cpp
@@ -159,7 +159,7 @@ BYTE CPsTree::InitTreeItems(LPWORD needWidth)
return FALSE;
}
- if (!DB::Setting::GetUString(NULL, MODNAME, SET_LASTITEM, &dbv))
+ if (!DB::Setting::GetUString(NULL, MODULENAME, SET_LASTITEM, &dbv))
{
_curItem = FindItemIndexByName(dbv.pszVal);
db_free(&dbv);
@@ -553,8 +553,8 @@ void CPsTree::SaveState()
}
// save current selected item
- if (pti) db_set_utf(NULL, MODNAME, SET_LASTITEM, pti->Name());
- else db_unset(NULL, MODNAME, SET_LASTITEM);
+ if (pti) db_set_utf(NULL, MODULENAME, SET_LASTITEM, pti->Name());
+ else db_unset(NULL, MODULENAME, SET_LASTITEM);
}
/**
@@ -570,14 +570,14 @@ void CPsTree::DBResetState()
{
DB::CEnumList Settings;
- if (!Settings.EnumSettings(NULL, MODNAME))
+ if (!Settings.EnumSettings(NULL, MODULENAME))
{
LPCSTR p = (_pPs->pszProto[0]) ? _pPs->pszProto : "Owner";
size_t c = mir_strlen(p);
for (auto &s : Settings)
if (s && *s == '{' && !mir_strncmpi(s + 1, p, c))
- db_unset(NULL, MODNAME, s);
+ db_unset(NULL, MODULENAME, s);
// keep only these flags
_dwFlags &= PSTVF_SORTTREE|PSTVF_GROUPS;
@@ -628,7 +628,7 @@ int CPsTree::BeginLabelEdit(HTREEITEM hItem)
CPsTreeItem* pti;
// tree is readonly
- if (db_get_b(NULL, MODNAME, SET_PROPSHEET_READONLYLABEL, 0))
+ if (db_get_b(NULL, MODULENAME, SET_PROPSHEET_READONLYLABEL, 0))
return 0;
// get item text
@@ -732,7 +732,7 @@ void CPsTree::PopupMenu()
tvi.hItem = hti.hItem;
TreeView_GetItem(_hWndTree, &tvi);
- if (!db_get_b(NULL, MODNAME, SET_PROPSHEET_READONLYLABEL, FALSE)) {
+ if (!db_get_b(NULL, MODULENAME, SET_PROPSHEET_READONLYLABEL, FALSE)) {
mii.dwTypeData = TranslateT("Rename Item");
mii.wID = 32001;
InsertMenuItem(hPopup, 0, FALSE, &mii);