Changeset 10577


Ignore:
Timestamp:
May 1, 2010, 4:17:26 AM (11 years ago)
Author:
charles
Message:

(1.9x qt) backport r10430 for #3095 "don't show remaining time for paused torrents"

Location:
branches/1.9x/qt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/1.9x/qt/torrent-delegate.cc

    r9890 r10577  
    117117
    118118    /* add time when downloading */
    119     if( hasSeedRatio || tor.isDownloading( ) )
     119    if( ( hasSeedRatio && tor.isSeeding( ) ) || tor.isDownloading( ) )
    120120    {
    121121        str += tr( " - " );
  • branches/1.9x/qt/torrent.h

    r10077 r10577  
    276276        bool isVerifying( ) const { return getActivity( ) == TR_STATUS_CHECK; }
    277277        bool isDownloading( ) const { return getActivity( ) == TR_STATUS_DOWNLOAD; }
     278        bool isSeeding( ) const { return getActivity( ) == TR_STATUS_SEED; }
    278279        bool isReadyToTransfer( ) const { return getActivity()==TR_STATUS_DOWNLOAD || getActivity()==TR_STATUS_SEED; }
    279280        void notifyComplete( ) const;
Note: See TracChangeset for help on using the changeset viewer.