From 5210413a1d28eada7fd03d02f0bb4d3a5cedd74d Mon Sep 17 00:00:00 2001 From: stoyan Date: Tue, 16 Aug 2005 23:22:38 +0000 Subject: [PATCH] Dismiss the popup after mouse tracking done. This is for the cases when mouse up event occurs outside of popup git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21643 72102866-910b-0410-8b05-ffd578937521 --- Source/NSPopUpButtonCell.m | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Source/NSPopUpButtonCell.m b/Source/NSPopUpButtonCell.m index 879636539..14b7c9f74 100644 --- a/Source/NSPopUpButtonCell.m +++ b/Source/NSPopUpButtonCell.m @@ -694,6 +694,13 @@ static NSImage *_pbc_image[2]; clickCount: [theEvent clickCount] pressure: [theEvent pressure]]; [NSApp sendEvent: e]; + + // End of mouse tracking here -- dismiss popup + // No synchronization needed here + if ([[_menu window] isVisible]) + { + [self dismissPopUp]; + } return NO; }