summaryrefslogtreecommitdiff
path: root/plugins/DbEditorPP
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-04-29 19:25:58 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-04-29 19:25:58 +0300
commit48a415461c0fb80861a6bfdccdda3490947c74f1 (patch)
tree3d2a2b1aabaea28fc62eb6235a5b101cbac8d021 /plugins/DbEditorPP
parent7007abacc77ac36a0f8088efe728de1f8fd3bcac (diff)
fixes #2865 (DbEditor: перестал работать даблклик по результату поиска)
Diffstat (limited to 'plugins/DbEditorPP')
-rw-r--r--plugins/DbEditorPP/src/findwindow.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/DbEditorPP/src/findwindow.cpp b/plugins/DbEditorPP/src/findwindow.cpp
index cf842cb8f4..46286bc7b0 100644
--- a/plugins/DbEditorPP/src/findwindow.cpp
+++ b/plugins/DbEditorPP/src/findwindow.cpp
@@ -428,6 +428,9 @@ public:
CreateLink(chkCaseSensitive, g_bCaseSensitive);
btnSearch.OnClick = Callback(this, &CFindWindowDlg::onClick_Search);
+
+ m_results.OnColumnClick = Callback(this, &CFindWindowDlg::onColumnClick_List);
+ m_results.OnDoubleClick = Callback(this, &CFindWindowDlg::onDblClick_List);
}
bool OnInitDialog() override
@@ -519,12 +522,12 @@ public:
void onDblClick_List(CCtrlListView::TEventInfo *ev)
{
LVHITTESTINFO hti;
- LVITEM lvi;
hti.pt = ev->nmlv->ptAction;
if (m_results.SubItemHitTest(&hti) == -1)
return;
if (hti.flags & LVHT_ONITEM) {
+ LVITEM lvi;
lvi.mask = LVIF_PARAM;
lvi.iItem = hti.iItem;
lvi.iSubItem = 0;