From cbd1596361f53edfdceba8af0461667afa54a417 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Sat, 6 Feb 2010 18:43:20 +0000 Subject: - Trigger a full table reload when the table type is changed; makes relations etc immeadiately available on changes to InnoDB, and updates a number of status variables --- Source/SPExtendedTableInfo.h | 3 ++- Source/SPExtendedTableInfo.m | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'Source') diff --git a/Source/SPExtendedTableInfo.h b/Source/SPExtendedTableInfo.h index bcb69e50..a3f12c62 100644 --- a/Source/SPExtendedTableInfo.h +++ b/Source/SPExtendedTableInfo.h @@ -26,11 +26,12 @@ #import #import -@class SPTableData, SPDatabaseData; +@class SPTableData, SPDatabaseData, TablesList; @interface SPExtendedTableInfo : NSObject { IBOutlet id tableDocumentInstance; + IBOutlet TablesList *tablesListInstance; IBOutlet SPTableData *tableDataInstance; IBOutlet SPDatabaseData *databaseDataInstance; diff --git a/Source/SPExtendedTableInfo.m b/Source/SPExtendedTableInfo.m index 88c91981..1ddcc90d 100644 --- a/Source/SPExtendedTableInfo.m +++ b/Source/SPExtendedTableInfo.m @@ -30,6 +30,7 @@ #import "SPStringAdditions.h" #import "SPConstants.h" #import "TableDocument.h" +#import "TablesList.h" #import "SPAlertSheets.h" @interface SPExtendedTableInfo (PrivateAPI) @@ -102,7 +103,7 @@ if ([connection getLastErrorID] == 0) { // Reload the table's data - [self reloadTable:self]; + [tablesListInstance updateSelectionWithTaskString:NSLocalizedString(@"Reloading data...", @"Reloading data task description")]; } else { [sender selectItemWithTitle:currentType]; -- cgit v1.2.3