diff options
author | Max Lohrmann <dmoagx@users.noreply.github.com> | 2017-04-22 18:30:55 +0200 |
---|---|---|
committer | Max Lohrmann <dmoagx@users.noreply.github.com> | 2017-04-22 18:30:55 +0200 |
commit | bed1cff292d5997b1b5a822be48ed92d31db9590 (patch) | |
tree | 8845b005382fbd30eb801ff1a00f0f5eea9bda37 /Source/SPTablesList.m | |
parent | dfab0cd76c54ba3f78284a57c89a7585a6042a38 (diff) | |
download | sequelpro-bed1cff292d5997b1b5a822be48ed92d31db9590.tar.gz sequelpro-bed1cff292d5997b1b5a822be48ed92d31db9590.tar.bz2 sequelpro-bed1cff292d5997b1b5a822be48ed92d31db9590.zip |
* Fix a case of "background thread updating UI" (may affect some crashes when importing CSVs)
Diffstat (limited to 'Source/SPTablesList.m')
-rw-r--r-- | Source/SPTablesList.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/SPTablesList.m b/Source/SPTablesList.m index 2fa26229..27810898 100644 --- a/Source/SPTablesList.m +++ b/Source/SPTablesList.m @@ -1370,6 +1370,8 @@ static NSString *SPDuplicateTable = @"SPDuplicateTable"; /** * Select an item using the provided name; returns YES if the * supplied name could be selected, or NO if not. + * + * MUST BE CALLED ON THE UI THREAD! */ - (BOOL)selectItemWithName:(NSString *)theName { @@ -1418,7 +1420,7 @@ static NSString *SPDuplicateTable = @"SPDuplicateTable"; } } - [[tablesListView onMainThread] scrollRowToVisible:[tablesListView selectedRow]]; + [tablesListView scrollRowToVisible:[tablesListView selectedRow]]; #endif return YES; |