mirror of
https://github.com/transmission/transmission.git
synced 2025-12-25 04:45:56 +00:00
when dragging a file on the window, check if it has the .torrent extension; smaller changes
This commit is contained in:
@@ -85,7 +85,8 @@
|
||||
tr_info info;
|
||||
while ((file = [enumerator nextObject]))
|
||||
{
|
||||
if (tr_torrentParse(fLib, [file UTF8String], NULL, &info) == TR_OK)
|
||||
if ([[file pathExtension] caseInsensitiveCompare: @"torrent"] == NSOrderedSame
|
||||
&& tr_torrentParse(fLib, [file UTF8String], NULL, &info) == TR_OK)
|
||||
{
|
||||
count++;
|
||||
size += info.totalSize;
|
||||
|
||||
Reference in New Issue
Block a user