Changeset 13076


Ignore:
Timestamp:
Nov 5, 2011, 3:45:38 PM (11 years ago)
Author:
jordan
Message:

(trunk qt) fix minor bugs in the torrent details dialog's info tab.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qt/details.cc

    r12698 r13076  
    361361        bool allPaused = true;
    362362        bool allFinished = true;
    363         const tr_torrent_activity activity = torrents[0]->getActivity( );
     363        const tr_torrent_activity baseline = torrents[0]->getActivity( );
    364364        foreach( const Torrent * t, torrents ) {
    365             if( activity != t->getActivity( ) )
     365            const tr_torrent_activity activity = t->getActivity( );
     366            if( activity != baseline )
    366367                isMixed = true;
    367368            if( activity != TR_STATUS_STOPPED )
     
    446447
    447448    // myDownloadedLabel
    448     uint64_t d = 0, f = 0;
    449     if( torrents.empty( ) )
    450         string = none;
    451     else {
     449    if( torrents.empty( ) )
     450        string = none;
     451    else {
     452        uint64_t d = 0;
     453        uint64_t f = 0;
    452454        foreach( const Torrent * t, torrents ) {
    453455            d += t->downloadedEver( );
Note: See TracChangeset for help on using the changeset viewer.