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:
Antoine Mercadal
2014-10-01 14:48:47 -07:00
parent 5979baa874
commit 608480c1d2
+3 -4
View File
@@ -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];
}
}