summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2014-05-30 10:03:54 +0000
committerRobert Pösel <robyer@seznam.cz>2014-05-30 10:03:54 +0000
commita1327f90bbf4278beb8874ba9e39dde455dade8b (patch)
tree93e733d4afea095c9953549c8b7ed0a76f123347
parenta417797696c0667903db59b16e6dd0be1cc6fa72 (diff)
Twitter: Fix closing popups on right click
git-svn-id: http://svn.miranda-ng.org/main/trunk@9365 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--protocols/Twitter/src/connection.cpp15
1 files changed, 8 insertions, 7 deletions
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<LPARAM>(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);