Fixed CPComboBox not resigning before first list popup

This commit is contained in:
Aparajita Fishman committed 2011-09-20 11:46:34 -07:00
1 parent 6f7cbe21ef
commit c3c4a09c8c
1 file changed
+1 -1
+1 -1
View File
@@ -762,7 +762,7 @@ var CPComboBoxTextSubview = @"text",
If the list or popup button is clicked, we lose focus. The list will refuse first responder,
and we refuse to resign. But we still have to manually restore the focus to the input element.
*/
var shouldResign = !buttonCausedResign && [_listDelegate controllingViewShouldResign];
var shouldResign = !buttonCausedResign && (!_listDelegate || [_listDelegate controllingViewShouldResign]);
if (!shouldResign)
{