From: Charles Kerr Date: Wed, 31 Mar 2010 19:42:30 +0000 (+0000) Subject: (trunk qt) #3095 "Don't show remaining time for paused torrents" -- fixed in trunk... X-Git-Tag: 2.00~285 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b5a50de6102fd1aa1bdae9eac81f225608a41ae1;p=transmission (trunk qt) #3095 "Don't show remaining time for paused torrents" -- fixed in trunk for 2.00 by a patch from Longinus00 --- diff --git a/qt/torrent-delegate.cc b/qt/torrent-delegate.cc index 0c323f169..08e6bbf22 100644 --- a/qt/torrent-delegate.cc +++ b/qt/torrent-delegate.cc @@ -116,7 +116,7 @@ TorrentDelegate :: progressString( const Torrent& tor ) const } /* add time when downloading */ - if( hasSeedRatio || tor.isDownloading( ) ) + if( ( hasSeedRatio && tor.isSeeding( ) ) || tor.isDownloading( ) ) { str += tr( " - " ); if( tor.hasETA( ) ) diff --git a/qt/torrent.h b/qt/torrent.h index c7874e833..42c275c05 100644 --- a/qt/torrent.h +++ b/qt/torrent.h @@ -275,6 +275,7 @@ class Torrent: public QObject bool isPaused( ) const { return getActivity( ) == TR_STATUS_STOPPED; } bool isVerifying( ) const { return getActivity( ) == TR_STATUS_CHECK; } bool isDownloading( ) const { return getActivity( ) == TR_STATUS_DOWNLOAD; } + bool isSeeding( ) const { return getActivity( ) == TR_STATUS_SEED; } bool isReadyToTransfer( ) const { return getActivity()==TR_STATUS_DOWNLOAD || getActivity()==TR_STATUS_SEED; } void notifyComplete( ) const;