From 4bf03c3be76d10af3eba06e83fc836bbbad91722 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Tue, 17 Apr 2012 10:59:59 +0000 Subject: [PATCH] since it uses a relative date, set the date added value on each pulse --- macosx/InfoActivityViewController.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/macosx/InfoActivityViewController.m b/macosx/InfoActivityViewController.m index abfcb4570..8342912d4 100644 --- a/macosx/InfoActivityViewController.m +++ b/macosx/InfoActivityViewController.m @@ -142,6 +142,9 @@ [fDateCompletedField setObjectValue: [torrent dateCompleted]]; + //uses a relative date, so can't be set once + [fDateAddedField setObjectValue: [torrent dateAdded]]; + [fDownloadTimeField setStringValue: [NSString timeString: [torrent secondsDownloading] showSeconds: YES]]; [fSeedTimeField setStringValue: [NSString timeString: [torrent secondsSeeding] showSeconds: YES]]; @@ -206,8 +209,6 @@ { Torrent * torrent = [fTorrents objectAtIndex: 0]; - [fDateAddedField setObjectValue: [torrent dateAdded]]; - const BOOL piecesAvailableSegment = [[NSUserDefaults standardUserDefaults] boolForKey: @"PiecesViewShowAvailability"]; [fPiecesControl setSelected: piecesAvailableSegment forSegment: PIECES_CONTROL_AVAILABLE]; [fPiecesControl setSelected: !piecesAvailableSegment forSegment: PIECES_CONTROL_PROGRESS];