remove a few 1.8 -> 1.9 warnings
This commit is contained in:
parent
40627dc831
commit
bc0f2bb3f0
|
@ -1263,11 +1263,6 @@ typedef enum
|
|||
|
||||
[fRevealDataButton setHidden: YES];
|
||||
|
||||
#warning remove after 1.8
|
||||
[fHashField setSelectable: NO];
|
||||
[fCreatorField setSelectable: NO];
|
||||
[fDataLocationField setSelectable: NO];
|
||||
|
||||
[fStateField setStringValue: @""];
|
||||
[fProgressField setStringValue: @""];
|
||||
|
||||
|
@ -1368,11 +1363,6 @@ typedef enum
|
|||
|
||||
[fDateAddedField setObjectValue: [torrent dateAdded]];
|
||||
|
||||
#warning remove after 1.8
|
||||
[fHashField setSelectable: YES];
|
||||
[fCommentView setSelectable: ![commentString isEqualToString: @""]];
|
||||
[fDataLocationField setSelectable: YES];
|
||||
|
||||
//set pieces view
|
||||
BOOL piecesAvailableSegment = [[NSUserDefaults standardUserDefaults] boolForKey: @"PiecesViewShowAvailability"];
|
||||
[fPiecesControl setSelected: piecesAvailableSegment forSegment: PIECES_CONTROL_AVAILABLE];
|
||||
|
|
|
@ -118,9 +118,8 @@
|
|||
baseString = [NSLocalizedString(@"Last Announce", "Tracker last announce") stringByAppendingFormat: @": %@", dateString];
|
||||
if (fStat.hasAnnounced && fStat.lastAnnounceSucceeded)
|
||||
{
|
||||
#warning after 1.8 fix ugly hack
|
||||
NSString * peerString;
|
||||
if (fStat.lastAnnouncePeerCount == 1 && [[[NSLocale currentLocale] localeIdentifier] hasPrefix: @"en_"])
|
||||
if (fStat.lastAnnouncePeerCount == 1)
|
||||
peerString = NSLocalizedString(@"got 1 peer", "Tracker last announce");
|
||||
else
|
||||
peerString = [NSString stringWithFormat: NSLocalizedString(@"got %d peers", "Tracker last announce"),
|
||||
|
|
Loading…
Reference in New Issue