path: root/src/plugins/platforms/cocoa
diff options
authorShawn Rutledge <>2013-09-03 16:25:53 +0200
committerThe Qt Project <>2013-09-04 07:10:47 +0200
commit86f8bee96b658d1712733477e26e70a1fd723102 (patch)
tree1aebd566a8cf7ab8f67b16bf123bd837e33089a8 /src/plugins/platforms/cocoa
parent5236f74942f0df8a74b696f133cbbac763e6950e (diff)
OSX: clicking outside a popup: don't propagate the event elsewhere
If you click outside a popup window, it only closes the popup; any other widget that was under the cursor at that time should not get the event. The bug was about the popup list on a combobox, but this patch assumes that this rule is universal; can't think of any exceptions at this time. (E.g. a tooltip is not a popup) Clicking on the application menubar still does not close the popup though. Task-number: QTBUG-33241 Change-Id: I2444b7cfd40cf75ff7b70e3fecfeceb2fd4623bf Reviewed-by: Gabriel de Dietrich <>
Diffstat (limited to 'src/plugins/platforms/cocoa')
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/platforms/cocoa/ b/src/plugins/platforms/cocoa/
index 4505f8b8cf..c6dce8b6f6 100644
--- a/src/plugins/platforms/cocoa/
+++ b/src/plugins/platforms/cocoa/
@@ -600,6 +600,7 @@ static QTouchDevice *touchDevice = 0;
m_platformWindow->m_activePopupWindow = 0;
+ return;
if ([self hasMarkedText]) {
NSInputManager* inputManager = [NSInputManager currentInputManager];