aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TablesList.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-03-23 11:34:16 +0000
committerBibiko <bibiko@eva.mpg.de>2010-03-23 11:34:16 +0000
commit6d72a0d3c3a047ce952e0e78a1e5232eb7f15be3 (patch)
tree3e67593755e83018f9fcef529f30299d6763ee7f /Source/TablesList.m
parent331d5f6d8a9bbb16089da8522d97d584e9921d73 (diff)
downloadsequelpro-6d72a0d3c3a047ce952e0e78a1e5232eb7f15be3.tar.gz
sequelpro-6d72a0d3c3a047ce952e0e78a1e5232eb7f15be3.tar.bz2
sequelpro-6d72a0d3c3a047ce952e0e78a1e5232eb7f15be3.zip
• TablesList
- method selectTableOrViewWithName: scrolls to selected item • Navigator - double-click at db/table/view/field selects the chosen schema path in active connection window if chosen schema path and active connection window have the same connection ID
Diffstat (limited to 'Source/TablesList.m')
-rw-r--r--Source/TablesList.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/TablesList.m b/Source/TablesList.m
index 6de845f3..03454e80 100644
--- a/Source/TablesList.m
+++ b/Source/TablesList.m
@@ -1234,6 +1234,7 @@
[self updateSelectionWithTaskString:[NSString stringWithFormat:NSLocalizedString(@"Loading %@...", @"Loading table task string"), theName]];
}
}
+ [tablesListView scrollRowToVisible:[tablesListView selectedRow]];
return YES;
}
@@ -1422,7 +1423,7 @@
tableName = [filteredTables objectAtIndex:[tablesListView selectedRow]];
[self updateSelectionWithTaskString:[NSString stringWithFormat:NSLocalizedString(@"Loading %@...", @"Loading table task string"), tableName]];
- if([[SPNavigatorController sharedNavigatorController] syncMode]) {
+ if([[SPNavigatorController sharedNavigatorController] syncMode] && [tablesListView numberOfSelectedRows] == 1) {
NSMutableString *schemaPath = [NSMutableString string];
[schemaPath setString:[tableDocumentInstance connectionID]];
if([tableDocumentInstance database] && [[tableDocumentInstance database] length]) {