From cdca69b6cdf57cfc1df6b798705a26902ec722d1 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 17 Aug 2020 12:16:16 +0300 Subject: =?UTF-8?q?fixes=20#2542=20(DbEditor:=20=D0=BF=D1=80=D0=B8=20?= =?UTF-8?q?=D0=BF=D0=B5=D1=80=D0=B5=D1=85=D0=BE=D0=B4=D0=B5=20=D0=BA=20?= =?UTF-8?q?=D1=80=D0=B5=D0=B7=D1=83=D0=BB=D1=8C=D1=82=D0=B0=D1=82=D1=83=20?= =?UTF-8?q?=D0=BF=D0=BE=D0=B8=D1=81=D0=BA=D0=B0=20=D0=BE=D0=BA=D0=BD=D0=BE?= =?UTF-8?q?=20=D0=BD=D0=B5=20=D0=BF=D1=80=D0=BE=D0=BA=D1=80=D1=83=D1=87?= =?UTF-8?q?=D0=B8=D0=B2=D0=B0=D0=B5=D1=82=D1=81=D1=8F=20=D0=B4=D0=BE=20?= =?UTF-8?q?=D0=BD=D1=83=D0=B6=D0=BD=D0=BE=D0=B9=20=D0=B7=D0=B0=D0=BF=D0=B8?= =?UTF-8?q?=D1=81=D0=B8)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/DbEditorPP/src/settinglist.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins/DbEditorPP') 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); } } -- cgit v1.2.3