diff options
author | Max <post@wickenrode.com> | 2015-10-25 23:42:27 +0100 |
---|---|---|
committer | Max <post@wickenrode.com> | 2015-10-25 23:42:27 +0100 |
commit | 2ed7473afe7bcc9ab7243f3347a5112d917b7385 (patch) | |
tree | 1971289d8acda331e1a8939cbf40715d654f9c7e /Source/SPDatabaseDocument.m | |
parent | 80272af56eb0236f4c56e60bf0661f036c6e311b (diff) | |
download | sequelpro-2ed7473afe7bcc9ab7243f3347a5112d917b7385.tar.gz sequelpro-2ed7473afe7bcc9ab7243f3347a5112d917b7385.tar.bz2 sequelpro-2ed7473afe7bcc9ab7243f3347a5112d917b7385.zip |
Wrap a repeated call in a simpler method
Diffstat (limited to 'Source/SPDatabaseDocument.m')
-rw-r--r-- | Source/SPDatabaseDocument.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m index fd4a74c5..2f7a5235 100644 --- a/Source/SPDatabaseDocument.m +++ b/Source/SPDatabaseDocument.m @@ -1032,7 +1032,7 @@ static int64_t SPDatabaseDocumentInstanceCounter = 0; [self _addDatabase]; // Query the structure of all databases in the background (mainly for completion) - [NSThread detachNewThreadWithName:SPCtxt(@"SPNavigatorController database structure querier",self) target:databaseStructureRetrieval selector:@selector(queryDbStructureWithUserInfo:) object:@{@"forceUpdate" : @YES}]; + [databaseStructureRetrieval queryDbStructureInBackgroundWithUserInfo:@{@"forceUpdate" : @YES}]; } else { // Reset chooseDatabaseButton |