Changeset 1785
- Timestamp:
- Apr 23, 2007, 7:58:21 PM (15 years ago)
- Location:
- branches/0.7x/macosx
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/0.7x/macosx/InfoWindowController.m
r1657 r1785 549 549 550 550 [fPexCheck setEnabled: NO]; 551 [fPexCheck setState: NSOffState]; 551 552 } 552 553 -
branches/0.7x/macosx/Torrent.m
r1703 r1785 81 81 { 82 82 fUseIncompleteFolder = [fDefaults boolForKey: @"UseIncompleteDownloadFolder"]; 83 fIncompleteFolder = [[ fDefaults stringForKey: @"IncompleteDownloadFolder"] copy];83 fIncompleteFolder = [[[fDefaults stringForKey: @"IncompleteDownloadFolder"] stringByExpandingTildeInPath] retain]; 84 84 85 85 if (!fPublicTorrent) … … 959 959 return @""; 960 960 961 #warning localize string after release962 961 NSString * error; 963 962 if (!(error = [NSString stringWithUTF8String: fStat->errorString]) 964 963 && !(error = [NSString stringWithCString: fStat->errorString encoding: NSISOLatin1StringEncoding])) 965 error = @""; 966 //error = NSLocalizedString(@"(unreadable error)", "Torrent -> error string unreadable"); 964 error = NSLocalizedString(@"(unreadable error)", "Torrent -> error string unreadable"); 967 965 968 966 return error; -
branches/0.7x/macosx/TorrentTableView.m
r1645 r1785 217 217 218 218 //select torrent closest to text that isn't before text alphabetically 219 int row; 219 220 NSEnumerator * enumerator = [tempTorrents objectEnumerator]; 220 221 Torrent * torrent; … … 222 223 if ([[torrent name] caseInsensitiveCompare: text] != NSOrderedAscending) 223 224 { 224 [self selectRow: [fTorrents indexOfObject: torrent] byExtendingSelection: NO];225 row = [fTorrents indexOfObject: torrent]; 225 226 break; 226 227 } … … 228 229 //select last torrent alphabetically if no match found 229 230 if (!torrent) 230 [self selectRow: [fTorrents indexOfObject: [tempTorrents lastObject]] byExtendingSelection: NO]; 231 row = [fTorrents indexOfObject: [tempTorrents lastObject]]; 232 233 [self selectRow: row byExtendingSelection: NO]; 234 [self scrollRowToVisible: row]; 231 235 } 232 236
Note: See TracChangeset
for help on using the changeset viewer.