aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTablesList.m
diff options
context:
space:
mode:
authorMax <dmoagx@users.noreply.github.com>2017-12-02 03:38:37 +0100
committerMax <dmoagx@users.noreply.github.com>2017-12-02 03:38:37 +0100
commit2f0099e1bf3caf42cfe76aa4074efdfc7f351cef (patch)
treeb0ad6316a2d5e70433d1ed14076e57433aa6b9ba /Source/SPTablesList.m
parentb04ca67477ffa1bb3baa4de64c9ce9796e017f47 (diff)
downloadsequelpro-2f0099e1bf3caf42cfe76aa4074efdfc7f351cef.tar.gz
sequelpro-2f0099e1bf3caf42cfe76aa4074efdfc7f351cef.tar.bz2
sequelpro-2f0099e1bf3caf42cfe76aa4074efdfc7f351cef.zip
* Moved `-[SPHistoryController currentlySelectedView]` to SPDatabaseDocument (was completely out of place there)
* Removed some redundant code in the process * Remove a few cross-thread UI calls Xcode 9.2 complains about (but there are just so many...)
Diffstat (limited to 'Source/SPTablesList.m')
-rw-r--r--Source/SPTablesList.m5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/SPTablesList.m b/Source/SPTablesList.m
index c75198b7..34d1dfcb 100644
--- a/Source/SPTablesList.m
+++ b/Source/SPTablesList.m
@@ -316,7 +316,10 @@ static NSString *SPDuplicateTable = @"SPDuplicateTable";
// Set the filter placeholder text
if ([tableDocumentInstance database]) {
- [[[listFilterField cell] onMainThread] setPlaceholderString:NSLocalizedString(@"Filter", @"filter label")];
+ SPMainQSync(^{
+ // -cell is a UI call according to Xcode 9.2 (and -setPlaceholderString: is too, obviously)
+ [[listFilterField cell] setPlaceholderString:NSLocalizedString(@"Filter", @"filter label")];
+ });
}
#endif