mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 04:57:03 +00:00
FIXED: popover window was not trapping next mouse event if delegate responds no to popoverShouldClose:
This patch fixes that by automatically trapping next mouse event if after a performClose, the popover is still visible
This commit is contained in:
@@ -726,11 +726,10 @@ var _CPPopoverWindow_shouldClose_ = 1 << 4,
|
||||
case CPPopoverBehaviorTransient:
|
||||
[_delegate performClose:self];
|
||||
break;
|
||||
|
||||
case CPPopoverBehaviorApplicationDefined:
|
||||
[self _trapNextMouseDown];
|
||||
break;
|
||||
}
|
||||
|
||||
if ([self isVisible])
|
||||
[self _trapNextMouseDown];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user