Changeset 9433
- Timestamp:
- Oct 29, 2009, 2:45:58 AM (13 years ago)
- Location:
- trunk/macosx
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/Controller.m
r9432 r9433 847 847 } 848 848 849 tr_info info;850 849 for (NSString * torrentPath in filenames) 851 850 { … … 853 852 tr_ctor * ctor = tr_ctorNew(fLib); 854 853 tr_ctorSetMetainfoFromFile(ctor, [torrentPath UTF8String]); 855 tr_parse_result result = tr_torrentParse(ctor, &info); 854 855 tr_info info; 856 const tr_parse_result result = tr_torrentParse(ctor, &info); 857 tr_ctorFree(ctor); 858 856 859 if (result != TR_PARSE_OK) 857 860 { … … 866 869 NSAssert2(NO, @"Unknown error code (%d) when attempting to open \"%@\"", result, torrentPath); 867 870 868 tr_ctorFree(ctor);869 871 tr_metainfoFree(&info); 870 872 continue; 871 873 } 872 873 tr_ctorFree(ctor);874 874 875 875 //determine download location … … 889 889 890 890 //determine to show the options window 891 BOOL showWindow = type == ADD_SHOW_OPTIONS || ([fDefaults boolForKey: @"DownloadAsk"]892 && (info.isMultifile || ![fDefaults boolForKey: @"DownloadAskMulti"])893 && (type != ADD_AUTO || ![fDefaults boolForKey: @"DownloadAskManual"]));891 const BOOL showWindow = type == ADD_SHOW_OPTIONS || ([fDefaults boolForKey: @"DownloadAsk"] 892 && (info.isMultifile || ![fDefaults boolForKey: @"DownloadAskMulti"]) 893 && (type != ADD_AUTO || ![fDefaults boolForKey: @"DownloadAskManual"])); 894 894 tr_metainfoFree(&info); 895 895 … … 2001 2001 if ([torrent isActive] && ![torrent isCheckingWaiting]) 2002 2002 { 2003 const BOOL isActive = ![torrent isStalled]; 2004 if (isActive) 2005 active++; 2006 2003 2007 if ([torrent isSeeding]) 2004 2008 { 2005 2009 seeding++; 2006 BOOL isActive = ![torrent isStalled];2007 if (isActive)2008 active++;2009 2010 2010 if (filterStatus && !((filterActive && isActive) || filterSeed)) 2011 2011 continue; … … 2014 2014 { 2015 2015 downloading++; 2016 BOOL isActive = ![torrent isStalled];2017 if (isActive)2018 active++;2019 2020 2016 if (filterStatus && !((filterActive && isActive) || filterDownload)) 2021 2017 continue; -
trunk/macosx/en.lproj/Localizable.strings
r9405 r9433 51 51 Status Bar -> speed tooltip */ 52 52 "%d KB/s" = "%d KB/s"; 53 54 /* Inspector -> Peers tab -> peers */ 55 "%d known" = "%d known"; 53 56 54 57 /* Status bar transfer count */ … … 286 289 "DL" = "DL"; 287 290 291 /* Inspector -> Peers tab -> peers */ 292 "DL from %d" = "DL from %d"; 293 288 294 /* Torrent disk space alert -> button */ 289 295 "Do not check disk space again" = "Do not check disk space again"; … … 509 515 /* files tab -> tooltip */ 510 516 "Normal Priority" = "Normal Priority"; 517 518 /* Inspector -> Peers tab -> peers */ 519 "Not Connected" = "Not Connected"; 511 520 512 521 /* Torrent disk space alert -> title */ … … 738 747 /* Create torrent -> location sheet -> button 739 748 Create torrent -> select file 740 Default folder cannot be used alert -> prompt741 Default incomplete folder cannot be used alert -> prompt742 749 Move torrent -> prompt 743 750 Open torrent -> prompt … … 821 828 "The directory \"%@\" does not currently exist. Create this directory or choose a different one to create the torrent file." = "The directory \"%@\" does not currently exist. Create this directory or choose a different one to create the torrent file."; 822 829 823 /* Default folder cannot be used alert -> message */824 "The download folder cannot be used. Choose a new location." = "The download folder cannot be used. Choose a new location.";825 826 /* Default incomplete folder cannot be used alert -> message */827 "The incomplete folder cannot be used. Choose a new location or cancel for none." = "The incomplete folder cannot be used. Choose a new location or cancel for none.";828 829 830 /* Move error alert -> message 830 831 Move inside itself alert -> message */ … … 950 951 "UL" = "UL"; 951 952 953 /* Inspector -> Peers tab -> peers */ 954 "UL to %d" = "UL to %d"; 955 952 956 /* File Outline -> Menu */ 953 957 "Uncheck Selected" = "Uncheck Selected";
Note: See TracChangeset
for help on using the changeset viewer.