diff options
-rw-r--r-- | Source/SPAlertSheets.m | 4 |
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]]; } |