diff options
author | stuconnolly <stuart02@gmail.com> | 2012-04-07 15:03:38 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2012-04-07 15:03:38 +0000 |
commit | 70a0d9a84d4623295a8de241854cc0c9364f1673 (patch) | |
tree | fa476984af34543b9017163440bef5f7643cc122 /Source/SPDatabaseDocument.m | |
parent | 8b83ed0f73105074239c9c083be343ad6a836ec0 (diff) | |
download | sequelpro-70a0d9a84d4623295a8de241854cc0c9364f1673.tar.gz sequelpro-70a0d9a84d4623295a8de241854cc0c9364f1673.tar.bz2 sequelpro-70a0d9a84d4623295a8de241854cc0c9364f1673.zip |
Tidy up and remove commented out code.
Diffstat (limited to 'Source/SPDatabaseDocument.m')
-rw-r--r-- | Source/SPDatabaseDocument.m | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m index 37cae9ac..a0545fbc 100644 --- a/Source/SPDatabaseDocument.m +++ b/Source/SPDatabaseDocument.m @@ -1302,7 +1302,6 @@ static NSString *SPRenameDatabaseAction = @"SPRenameDatabase"; */ - (void) endTask { - // Ensure a call on the main thread if (![NSThread isMainThread]) return [[self onMainThread] endTask]; @@ -5897,7 +5896,6 @@ static NSString *SPRenameDatabaseAction = @"SPRenameDatabase"; // that's why we can run this on main thread [databaseStructureRetrieval queryDbStructureWithUserInfo:nil]; - // Delete was successful if (selectedDatabase) [selectedDatabase release], selectedDatabase = nil; [self setDatabases:self]; @@ -5905,9 +5903,10 @@ static NSString *SPRenameDatabaseAction = @"SPRenameDatabase"; [tablesListInstance setConnection:mySQLConnection]; [tableDumpInstance setConnection:mySQLConnection]; -#ifndef SP_REFACTOR +#ifndef SP_REFACTOR /* ui */ [self updateWindowTitle:self]; #endif + #ifdef SP_REFACTOR /* glue */ if ( delegate && [delegate respondsToSelector:@selector(refreshDatabasePopup)] ) [delegate performSelector:@selector(refreshDatabasePopup) withObject:nil]; |