diff options
Diffstat (limited to 'Source/SPAlertSheets.m')
-rw-r--r-- | Source/SPAlertSheets.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/SPAlertSheets.m b/Source/SPAlertSheets.m index 2505fb61..9692e848 100644 --- a/Source/SPAlertSheets.m +++ b/Source/SPAlertSheets.m @@ -22,6 +22,8 @@ // // More info at <http://code.google.com/p/sequel-pro/> +#import "SPMainThreadTrampoline.h" + /** * Provide a very simple alias of NSBeginAlertSheet with one difference: * printf-type format strings are no longer supported within the "msg" @@ -52,5 +54,5 @@ void SPBeginAlertSheet( contextInfo, [msg stringByReplacingOccurrencesOfString:@"%" withString:@"%%"] ); - [docWindow makeKeyWindow]; + [[docWindow onMainThread] makeKeyWindow]; } |