File tree 1 file changed +9
-6
lines changed
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -4468,6 +4468,7 @@ - (void)tabDidResize
4468
4468
{
4469
4469
// Coax the main split view into actually checking its constraints
4470
4470
[contentViewSplitter setPosition:[[[contentViewSplitter subviews] objectAtIndex:0] bounds].size.width ofDividerAtIndex:0];
4471
+
4471
4472
// If the task interface is visible, and this tab is frontmost, re-center the task child window
4472
4473
if (_isWorkingLevel && [parentWindowController selectedTableDocument] == self) [self centerTaskWindow];
4473
4474
}
@@ -4476,17 +4477,19 @@ - (void)tabDidResize
4476
4477
/**
4477
4478
* Set the parent window
4478
4479
*/
4479
- - (void)setParentWindow:(NSWindow *)aWindow
4480
+ - (void)setParentWindow:(NSWindow *)window
4480
4481
{
4481
- #ifndef SP_CODA
4482
+ NSWindow *outlineViewWindow = [(NSView *)[connectionController favoritesOutlineView] window];
4483
+
4482
4484
// If the window is being set for the first time - connection controller is visible - update focus
4483
- if (!parentWindow && !mySQLConnection) {
4484
- [aWindow makeFirstResponder:(NSResponder *)[connectionController favoritesOutlineView]];
4485
+ if (!parentWindow && !mySQLConnection && window == outlineViewWindow ) {
4486
+ [window makeFirstResponder:(NSResponder *)[connectionController favoritesOutlineView]];
4485
4487
}
4486
- #endif
4487
4488
4488
- parentWindow = aWindow;
4489
+ parentWindow = window;
4490
+
4489
4491
SPSSHTunnel *currentTunnel = [connectionController valueForKeyPath:@"sshTunnel"];
4492
+
4490
4493
if (currentTunnel) [currentTunnel setParentWindow:parentWindow];
4491
4494
}
4492
4495
You can’t perform that action at this time.
0 commit comments