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/SPNavigatorController.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/SPNavigatorController.m')
-rw-r--r-- | Source/SPNavigatorController.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPNavigatorController.m b/Source/SPNavigatorController.m index 1c7bfbba..47352f06 100644 --- a/Source/SPNavigatorController.m +++ b/Source/SPNavigatorController.m @@ -610,7 +610,7 @@ static NSComparisonResult compareStrings(NSString *s1, NSString *s2, void* conte if (![[doc getConnection] isConnected]) return; - [NSThread detachNewThreadWithName:SPCtxt(@"SPNavigatorController database structure querier", doc) target:[doc databaseStructureRetrieval] selector:@selector(queryDbStructureWithUserInfo:) object:@{@"forceUpdate" : @YES}]; + [[doc databaseStructureRetrieval] queryDbStructureInBackgroundWithUserInfo:@{@"forceUpdate" : @YES}]; } - (IBAction)outlineViewAction:(id)sender |