aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TablesList.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-06-04 20:19:59 +0000
committerBibiko <bibiko@eva.mpg.de>2009-06-04 20:19:59 +0000
commit905dd61bd91f3dce22655bf942302739544dd86c (patch)
treeb8b6247c72a7716a8dff5e2211949dcfe186bf53 /Source/TablesList.m
parenta62ac5494e570f782ab9bf74270f0ca7a61e033b (diff)
downloadsequelpro-905dd61bd91f3dce22655bf942302739544dd86c.tar.gz
sequelpro-905dd61bd91f3dce22655bf942302739544dd86c.tar.bz2
sequelpro-905dd61bd91f3dce22655bf942302739544dd86c.zip
• added: the "Show Create Syntax" window now follows the selection in the table list if it was already opened
• commented out the NSLog "not parsed" in SPTableData.m
Diffstat (limited to 'Source/TablesList.m')
-rw-r--r--Source/TablesList.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/TablesList.m b/Source/TablesList.m
index fa4db07a..716727d8 100644
--- a/Source/TablesList.m
+++ b/Source/TablesList.m
@@ -1226,6 +1226,12 @@
// set window title
[tableWindow setTitle:[NSString stringWithFormat:@"(MySQL %@) %@/%@/%@", [tableDocumentInstance mySQLVersion],
[tableDocumentInstance name], [tableDocumentInstance database], [tables objectAtIndex:[tablesListView selectedRow]]]];
+
+ // Update the "Show Create Syntax" window if it's already opened
+ // according to the selected table/view/proc/func
+ if([[tableDocumentInstance getCreateTableSyntaxWindow] isVisible])
+ [tableDocumentInstance showCreateTableSyntax:self];
+
} else {
[tableSourceInstance loadTable:nil];
[tableContentInstance loadTable:nil];