From a1327f90bbf4278beb8874ba9e39dde455dade8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Fri, 30 May 2014 10:03:54 +0000 Subject: Twitter: Fix closing popups on right click git-svn-id: http://svn.miranda-ng.org/main/trunk@9365 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Twitter/src/connection.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'protocols') diff --git a/protocols/Twitter/src/connection.cpp b/protocols/Twitter/src/connection.cpp index 7786e1d0a2..783438280e 100644 --- a/protocols/Twitter/src/connection.cpp +++ b/protocols/Twitter/src/connection.cpp @@ -530,20 +530,21 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM //std::string url = profile_base_url("https://twitter.com/") + http::url_encode(dbv.pszVal); CallService(MS_UTILS_OPENURL, 1, reinterpret_cast(url->c_str())); } - + // Intentionally no break here + } + case WM_CONTEXTMENU: + { // After a click, destroy popup PUDeletePopup(hwnd); - } break; - + return TRUE; + } case UM_FREEPLUGINDATA: { // After close, free std::string *url = (std::string *)PUGetPluginData(hwnd); delete url; - } return FALSE; - - default: - break; + return FALSE; + } } return DefWindowProc(hwnd, message, wParam, lParam); -- cgit v1.2.3