summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src/history_control.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-02-28 17:35:22 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-02-28 17:35:22 +0300
commit1d9308bdb58d0cff1b12bf82575319964bae469e (patch)
tree01221e66231ee1628f231d63e92d48f53ac98245 /plugins/NewStory/src/history_control.cpp
parent14ad818465dcd095dc8ecf3dbc8cef082c5ceb6b (diff)
fixes #3365 (NewStory: проблемы со ссылками )
Diffstat (limited to 'plugins/NewStory/src/history_control.cpp')
-rw-r--r--plugins/NewStory/src/history_control.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp
index 348f955c41..398c6b24ab 100644
--- a/plugins/NewStory/src/history_control.cpp
+++ b/plugins/NewStory/src/history_control.cpp
@@ -824,7 +824,6 @@ LRESULT CALLBACK NewstoryListWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM
data->EndEditItem(false);
auto *pItem = data->items[idx];
- MTextActivate(pItem->data, true);
if (wParam & MK_CONTROL) {
SendMessage(hwnd, NSM_TOGGLEITEMS, idx, idx);
@@ -836,8 +835,10 @@ LRESULT CALLBACK NewstoryListWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM
}
else {
pt.y -= pItem->savedTop;
- if (pItem->isLink(pt)) {
- Utils_OpenUrlW(pItem->getWBuf());
+
+ CMStringW wszUrl;
+ if (pItem->isLink(pt, wszUrl)) {
+ Utils_OpenUrlW(wszUrl);
return 0;
}
@@ -849,7 +850,6 @@ LRESULT CALLBACK NewstoryListWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM
SendMessage(hwnd, NSM_SELECTITEMS2, idx, idx);
SendMessage(hwnd, NSM_SETCARET, idx, TRUE);
}
- MTextActivate(pItem->data, false);
}
SetFocus(hwnd);