aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2011-04-10 23:14:26 +0000
committerrowanbeentje <rowan@beent.je>2011-04-10 23:14:26 +0000
commit6b154a3822f133a6e8cb09c116853bcd728b53cf (patch)
tree32cae668ac1c035262f1319169e01ccf35fcf4c7 /Source
parentb532634ab35447fea0b89123468b2d63869abc99 (diff)
downloadsequelpro-6b154a3822f133a6e8cb09c116853bcd728b53cf.tar.gz
sequelpro-6b154a3822f133a6e8cb09c116853bcd728b53cf.tar.bz2
sequelpro-6b154a3822f133a6e8cb09c116853bcd728b53cf.zip
- When creating a new table, switch to the Structure tab to allow further setup of the table directly after creation
Diffstat (limited to 'Source')
-rw-r--r--Source/SPTablesList.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/SPTablesList.m b/Source/SPTablesList.m
index 67ab3069..fa358b23 100644
--- a/Source/SPTablesList.m
+++ b/Source/SPTablesList.m
@@ -2153,7 +2153,9 @@
[self updateFilter:self];
[tablesListView scrollRowToVisible:[tablesListView selectedRow]];
+ // Select the newly created table and switch to the table structure view for easier setup
[tableDocumentInstance loadTable:selectedTableName ofType:selectedTableType];
+ [tableDocumentInstance viewStructure:self];
// Query the structure of all databases in the background (mainly for completion)
[NSThread detachNewThreadSelector:@selector(queryDbStructureWithUserInfo:) toTarget:mySQLConnection withObject:[NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:YES], @"forceUpdate", nil]];