File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 30
30
31
31
#import " SPAlertSheets.h"
32
32
#import " SPMainThreadTrampoline.h"
33
+ #import " SPFunctions.h"
33
34
34
35
@implementation SPAlertSheets
35
36
@@ -207,7 +208,7 @@ void SPBeginAlertSheet(
207
208
void *contextInfo,
208
209
NSString *msg)
209
210
{
210
- void (^alertBlock)( void ) = ^{
211
+ SPMainQSync ( ^{
211
212
// Set up an NSAlert with the supplied details
212
213
NSAlert *alert = [[[NSAlert alloc ] init ] autorelease ];
213
214
@@ -236,12 +237,5 @@ void SPBeginAlertSheet(
236
237
237
238
// Ensure the alerting window is frontmost
238
239
[docWindow makeKeyWindow ];
239
- };
240
-
241
- if (dispatch_get_current_queue () == dispatch_get_main_queue ()) {
242
- alertBlock ();
243
- }
244
- else {
245
- dispatch_sync (dispatch_get_main_queue (), alertBlock);
246
- }
240
+ });
247
241
}
Original file line number Diff line number Diff line change 98
98
17D3C66E128AD4710047709F /* SPFavoritesController.m in Sources */ = {isa = PBXBuildFile; fileRef = 17D3C66D128AD4710047709F /* SPFavoritesController.m */; };
99
99
17D3C671128AD8160047709F /* SPSingleton.m in Sources */ = {isa = PBXBuildFile; fileRef = 17D3C670128AD8160047709F /* SPSingleton.m */; };
100
100
17D3C6D3128B1C900047709F /* SPFavoritesOutlineView.m in Sources */ = {isa = PBXBuildFile; fileRef = 17D3C6D2128B1C900047709F /* SPFavoritesOutlineView.m */; };
101
+ 17D41A8221700F8200B1888D /* SPFunctions.m in Sources */ = {isa = PBXBuildFile; fileRef = 507FF1111BBCC57600104523 /* SPFunctions.m */; };
101
102
17D5B49E1553059F00EF3BB3 /* SPViewCopy.m in Sources */ = {isa = PBXBuildFile; fileRef = 17D5B49D1553059F00EF3BB3 /* SPViewCopy.m */; };
102
103
17DB5F441555CA300046834B /* SPMutableArrayAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = 1798F19715501838004B0AB8 /* SPMutableArrayAdditions.m */; };
103
104
17DD52B7115071D0007D8950 /* SPPrintTemplate.html in Resources */ = {isa = PBXBuildFile; fileRef = 17DD52B6115071D0007D8950 /* SPPrintTemplate.html */; };
3157
3158
isa = PBXSourcesBuildPhase;
3158
3159
buildActionMask = 2147483647;
3159
3160
files = (
3161
+ 17D41A8221700F8200B1888D /* SPFunctions.m in Sources */,
3160
3162
507FF2421BC33BBC00104523 /* SPOSInfo.m in Sources */,
3161
3163
586F457B0FDB269E00B428D7 /* RegexKitLite.m in Sources */,
3162
3164
58CDB3410FCE141900F8ACA3 /* SequelProTunnelAssistant.m in Sources */,
You can’t perform that action at this time.
0 commit comments