Changeset 13076
- Timestamp:
- Nov 5, 2011, 3:45:38 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt/details.cc
r12698 r13076 361 361 bool allPaused = true; 362 362 bool allFinished = true; 363 const tr_torrent_activity activity= torrents[0]->getActivity( );363 const tr_torrent_activity baseline = torrents[0]->getActivity( ); 364 364 foreach( const Torrent * t, torrents ) { 365 if( activity != t->getActivity( ) ) 365 const tr_torrent_activity activity = t->getActivity( ); 366 if( activity != baseline ) 366 367 isMixed = true; 367 368 if( activity != TR_STATUS_STOPPED ) … … 446 447 447 448 // 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; 452 454 foreach( const Torrent * t, torrents ) { 453 455 d += t->downloadedEver( );
Note: See TracChangeset
for help on using the changeset viewer.