mirror of
https://github.com/transmission/transmission.git
synced 2026-04-20 16:59:43 +01:00
ensure that NSApp is loaded for the QuickLook plugin
This commit is contained in:
@@ -37,6 +37,9 @@ OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview,
|
||||
if (QLPreviewRequestIsCancelled(preview))
|
||||
return noErr;
|
||||
|
||||
//we need this call to ensure NSApp is initialized (not done automatically for plugins)
|
||||
[NSApplication sharedApplication];
|
||||
|
||||
//try to parse the torrent file
|
||||
tr_info inf;
|
||||
tr_ctor * ctor = tr_ctorNew(NULL);
|
||||
|
||||
Reference in New Issue
Block a user