Permalink
Browse files

Fix a case of "background thread updating UI" (#2916)

  • Loading branch information...
dmoagx committed Nov 11, 2017
1 parent 273bd37 commit 6734907374aef150f53e65b81f0fc2b43a8a54f7
Showing with 3 additions and 1 deletion.
  1. +2 −0 Source/SPExtendedTableInfo.m
  2. +1 −1 Source/SPPrintController.m
@@ -437,6 +437,8 @@ - (void)loadTable:(NSString *)table
/**
* Returns a dictionary describing the information of the table to be used for printing purposes.
*
* MUST BE CALLED ON THE UI THREAD!
*/
- (NSDictionary *)tableInformationForPrinting
{
@@ -364,7 +364,7 @@ - (void)generateTableInfoHTMLForPrinting
NSString *heading = NSLocalizedString(@"Table Information", @"table information print heading");
[engine setObject:connection forKey:@"c"];
[engine setObject:[extendedTableInfoInstance tableInformationForPrinting] forKey:@"i"];
[engine setObject:[[extendedTableInfoInstance onMainThread] tableInformationForPrinting] forKey:@"i"];
[printData setObject:heading forKey:@"heading"];
[printData setObject:[[NSUnarchiver unarchiveObjectWithData:[prefs objectForKey:SPCustomQueryEditorFont]] fontName] forKey:@"font"];

0 comments on commit 6734907

Please sign in to comment.