diff options
author | Max <post@wickenrode.com> | 2015-11-01 06:18:37 +0100 |
---|---|---|
committer | Max <post@wickenrode.com> | 2015-11-01 06:18:37 +0100 |
commit | 7e74bcb74154eb892ad703b32adbe07fc6fef13b (patch) | |
tree | b0c52798c9e22f5b3335f486fff10f49e36d3d18 /Source | |
parent | 2f2aafb4f5675282a37d16dce96027706096df40 (diff) | |
download | sequelpro-7e74bcb74154eb892ad703b32adbe07fc6fef13b.tar.gz sequelpro-7e74bcb74154eb892ad703b32adbe07fc6fef13b.tar.bz2 sequelpro-7e74bcb74154eb892ad703b32adbe07fc6fef13b.zip |
Fix an exception on 10.11 when trying to install an SP update while a save dialog is displayed (may have afftected other modal dialogs)
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPAppController.m | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/SPAppController.m b/Source/SPAppController.m index 3458634a..35b5ab96 100644 --- a/Source/SPAppController.m +++ b/Source/SPAppController.m @@ -2193,6 +2193,9 @@ */ - (void)updaterWillRelaunchApplication:(SUUpdater *)updater { + // Sparkle might call this on a background thread, but calling endSheet: from a bg thread is unhealthy + if(![NSThread isMainThread]) return [[self onMainThread] updaterWillRelaunchApplication:updater]; + // Get all the currently open windows and their attached sheets if any NSArray *windows = [NSApp windows]; |