aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TablesList.m
diff options
context:
space:
mode:
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];