aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPAlertSheets.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPAlertSheets.m')
-rw-r--r--Source/SPAlertSheets.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPAlertSheets.m b/Source/SPAlertSheets.m
index b9ac1136..41b07e00 100644
--- a/Source/SPAlertSheets.m
+++ b/Source/SPAlertSheets.m
@@ -161,6 +161,6 @@ void SPBeginWaitingAlertSheet(
}
- [NSApp endModalSession:session];
- [NSApp endSheet:[alert window]];
+ [[NSApp onMainThread] endModalSession:session];
+ [[NSApp onMainThread] endSheet:[alert window]];
}