mirror of
https://github.com/transmission/transmission
synced 2024-12-25 09:13:06 +00:00
eplace another file extension check with a Uniform Type Identifier check
This commit is contained in:
parent
f3398cd608
commit
4eff9949fc
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@
|
|||
|
||||
for (NSString * file in files)
|
||||
{
|
||||
if ([[file pathExtension] caseInsensitiveCompare: @"torrent"] == NSOrderedSame)
|
||||
if ([[[NSWorkspace sharedWorkspace] typeOfFile: file error: NULL] isEqualToString: @"org.bittorrent.torrent"])
|
||||
{
|
||||
tr_ctor * ctor = tr_ctorNew(fLib);
|
||||
tr_ctorSetMetainfoFromFile(ctor, [file UTF8String]);
|
||||
|
|
Loading…
Reference in a new issue