diff options
author | George Hazan <ghazan@miranda.im> | 2021-04-29 19:25:58 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-04-29 19:25:58 +0300 |
commit | 48a415461c0fb80861a6bfdccdda3490947c74f1 (patch) | |
tree | 3d2a2b1aabaea28fc62eb6235a5b101cbac8d021 /plugins/DbEditorPP | |
parent | 7007abacc77ac36a0f8088efe728de1f8fd3bcac (diff) |
fixes #2865 (DbEditor: перестал работать даблклик по результату поиска)
Diffstat (limited to 'plugins/DbEditorPP')
-rw-r--r-- | plugins/DbEditorPP/src/findwindow.cpp | 5 |
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;
|