aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2011-07-11 00:23:08 +0000
committerrowanbeentje <rowan@beent.je>2011-07-11 00:23:08 +0000
commit711366fe825bc3d02cae80772bd46cdac9dbe6a7 (patch)
treeb0a13c5cd7e1c76199ee3acac41a4d83dd1ca858 /Source
parent86541d46e1953b1942ddcbdcbe94d5d2caa69f22 (diff)
downloadsequelpro-711366fe825bc3d02cae80772bd46cdac9dbe6a7.tar.gz
sequelpro-711366fe825bc3d02cae80772bd46cdac9dbe6a7.tar.bz2
sequelpro-711366fe825bc3d02cae80772bd46cdac9dbe6a7.zip
- Fix thread-safety issue in blocking/waiting alert sheets, addressing crashes ( http://spbug.com/l/2035 ), particularly under Lion
Diffstat (limited to 'Source')
-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]];
}