diff options
author | rowanbeentje <rowan@beent.je> | 2011-07-11 00:23:08 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2011-07-11 00:23:08 +0000 |
commit | 711366fe825bc3d02cae80772bd46cdac9dbe6a7 (patch) | |
tree | b0a13c5cd7e1c76199ee3acac41a4d83dd1ca858 /Source | |
parent | 86541d46e1953b1942ddcbdcbe94d5d2caa69f22 (diff) | |
download | sequelpro-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.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]]; } |