Skip to content

Commit 004af0c

Browse files
committed
Merge branch 'master' of https://github.com/sequelpro/sequelpro
2 parents 5a201e6 + 63eb878 commit 004af0c

2 files changed

Lines changed: 10 additions & 7 deletions

File tree

Interfaces/English.lproj/ConnectionView.xib

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2544,7 +2544,7 @@ DQ
25442544
<action selector="renameNode:" target="-2" id="5819"/>
25452545
</connections>
25462546
</menuItem>
2547-
<menuItem title="Remove" id="5794">
2547+
<menuItem title="Delete" id="5794">
25482548
<modifierMask key="keyEquivalentModifierMask"/>
25492549
<connections>
25502550
<action selector="removeNode:" target="-2" id="5802"/>

Source/SPDatabaseDocument.m

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4474,6 +4474,7 @@ - (void)tabDidResize
44744474
{
44754475
// Coax the main split view into actually checking its constraints
44764476
[contentViewSplitter setPosition:[[[contentViewSplitter subviews] objectAtIndex:0] bounds].size.width ofDividerAtIndex:0];
4477+
44774478
// If the task interface is visible, and this tab is frontmost, re-center the task child window
44784479
if (_isWorkingLevel && [parentWindowController selectedTableDocument] == self) [self centerTaskWindow];
44794480
}
@@ -4482,17 +4483,19 @@ - (void)tabDidResize
44824483
/**
44834484
* Set the parent window
44844485
*/
4485-
- (void)setParentWindow:(NSWindow *)aWindow
4486+
- (void)setParentWindow:(NSWindow *)window
44864487
{
4487-
#ifndef SP_CODA
4488+
NSWindow *favoritesOutlineViewWindow = [(NSView *)[connectionController favoritesOutlineView] window];
4489+
44884490
// If the window is being set for the first time - connection controller is visible - update focus
4489-
if (!parentWindow && !mySQLConnection) {
4490-
[aWindow makeFirstResponder:(NSResponder *)[connectionController favoritesOutlineView]];
4491+
if (!parentWindow && !mySQLConnection && window == favoritesOutlineViewWindow) {
4492+
[window makeFirstResponder:(NSResponder *)[connectionController favoritesOutlineView]];
44914493
}
4492-
#endif
44934494

4494-
parentWindow = aWindow;
4495+
parentWindow = window;
4496+
44954497
SPSSHTunnel *currentTunnel = [connectionController valueForKeyPath:@"sshTunnel"];
4498+
44964499
if (currentTunnel) [currentTunnel setParentWindow:parentWindow];
44974500
}
44984501

0 commit comments

Comments
 (0)