From fe9a592ca3be829570f5bd88efd5b427120556e5 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Tue, 23 Nov 2010 01:47:52 +0000 Subject: - Abstract SPDatabaseDocument's Connection/.spf saving/loading functionality into state setting and getting functions, and refactor old commands to use them - Fix restoring of content sort column order and selected indexes - Add menu items for duplicating current tab (as an alternate), opening selected table in a new tab, or opening selected database in a new tab - Clean up file menu by making Connection/Session "Save as..." menu items alternates - Update localisable strings --- Source/SPTableContent.m | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Source/SPTableContent.m') diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m index 2f0cec21..5b7f4a4b 100644 --- a/Source/SPTableContent.m +++ b/Source/SPTableContent.m @@ -284,6 +284,10 @@ BOOL enableInteraction = ![[tableDocumentInstance selectedToolbarItemIdentifier] isEqualToString:SPMainToolbarTableContent] || ![tableDocumentInstance isWorking]; if (!tableDetails) { + + // If no table is currently selected, no action required - return. + if (!selectedTable) return; + newTableName = nil; } else { newTableName = [tableDetails objectForKey:@"name"]; -- cgit v1.2.3