Skip to content

Commit 63eb878

Browse files
committed
Fix first responder exception being logged on 10.12. Check if the favourites outline view is attached to a window before setting it as the first responder.
1 parent 9527a67 commit 63eb878

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: Source/SPDatabaseDocument.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -4479,10 +4479,10 @@ - (void)tabDidResize
44794479
*/
44804480
- (void)setParentWindow:(NSWindow *)window
44814481
{
4482-
NSWindow *outlineViewWindow = [(NSView *)[connectionController favoritesOutlineView] window];
4482+
NSWindow *favoritesOutlineViewWindow = [(NSView *)[connectionController favoritesOutlineView] window];
44834483

44844484
// If the window is being set for the first time - connection controller is visible - update focus
4485-
if (!parentWindow && !mySQLConnection && window == outlineViewWindow) {
4485+
if (!parentWindow && !mySQLConnection && window == favoritesOutlineViewWindow) {
44864486
[window makeFirstResponder:(NSResponder *)[connectionController favoritesOutlineView]];
44874487
}
44884488

0 commit comments

Comments
 (0)