From 905dd61bd91f3dce22655bf942302739544dd86c Mon Sep 17 00:00:00 2001 From: Bibiko Date: Thu, 4 Jun 2009 20:19:59 +0000 Subject: =?UTF-8?q?=E2=80=A2=20added:=20the=20"Show=20Create=20Syntax"=20w?= =?UTF-8?q?indow=20now=20follows=20the=20selection=20in=20the=20table=20li?= =?UTF-8?q?st=20if=20it=20was=20already=20opened=20=E2=80=A2=20commented?= =?UTF-8?q?=20out=20the=20NSLog=20"not=20parsed"=20in=20SPTableData.m?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/TablesList.m | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Source/TablesList.m') 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]; -- cgit v1.2.3