diff options
author | George Hazan <ghazan@miranda.im> | 2020-08-17 12:16:16 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-08-17 12:16:16 +0300 |
commit | cdca69b6cdf57cfc1df6b798705a26902ec722d1 (patch) | |
tree | 5e6bc521107b49fc5656d622ef0c543ca0bbfdfe /plugins/DbEditorPP | |
parent | 81f1a31f708e2050f86f6c3e125cb715df607921 (diff) |
fixes #2542 (DbEditor: при переходе к результату поиска окно не прокручивается до нужной записи)
Diffstat (limited to 'plugins/DbEditorPP')
-rw-r--r-- | plugins/DbEditorPP/src/settinglist.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/DbEditorPP/src/settinglist.cpp b/plugins/DbEditorPP/src/settinglist.cpp index 54323be704..e60e15f2d5 100644 --- a/plugins/DbEditorPP/src/settinglist.cpp +++ b/plugins/DbEditorPP/src/settinglist.cpp @@ -375,8 +375,11 @@ void SelectSetting(const char *setting) lvItem.iItem = findListItem(setting);
if (lvItem.iItem != -1) {
EditFinish(lvItem.iItem);
+
lvItem.state = LVIS_SELECTED | LVIS_FOCUSED;
ListView_SetItem(hwnd2List, &lvItem);
+
+ ListView_EnsureVisible(hwnd2List, lvItem.iItem, false);
}
}
|