mirror of
https://github.com/transmission/transmission
synced 2024-12-24 08:43:27 +00:00
(trunk qt) fix minor bugs in the torrent details dialog's info tab.
This commit is contained in:
parent
49ba5f230b
commit
f569bae99c
1 changed files with 5 additions and 3 deletions
|
@ -360,9 +360,10 @@ Details :: refresh( )
|
||||||
bool isMixed = false;
|
bool isMixed = false;
|
||||||
bool allPaused = true;
|
bool allPaused = true;
|
||||||
bool allFinished = true;
|
bool allFinished = true;
|
||||||
const tr_torrent_activity activity = torrents[0]->getActivity( );
|
const tr_torrent_activity baseline = torrents[0]->getActivity( );
|
||||||
foreach( const Torrent * t, torrents ) {
|
foreach( const Torrent * t, torrents ) {
|
||||||
if( activity != t->getActivity( ) )
|
const tr_torrent_activity activity = t->getActivity( );
|
||||||
|
if( activity != baseline )
|
||||||
isMixed = true;
|
isMixed = true;
|
||||||
if( activity != TR_STATUS_STOPPED )
|
if( activity != TR_STATUS_STOPPED )
|
||||||
allPaused = allFinished = false;
|
allPaused = allFinished = false;
|
||||||
|
@ -445,10 +446,11 @@ Details :: refresh( )
|
||||||
myAvailabilityLabel->setText( string );
|
myAvailabilityLabel->setText( string );
|
||||||
|
|
||||||
// myDownloadedLabel
|
// myDownloadedLabel
|
||||||
uint64_t d = 0, f = 0;
|
|
||||||
if( torrents.empty( ) )
|
if( torrents.empty( ) )
|
||||||
string = none;
|
string = none;
|
||||||
else {
|
else {
|
||||||
|
uint64_t d = 0;
|
||||||
|
uint64_t f = 0;
|
||||||
foreach( const Torrent * t, torrents ) {
|
foreach( const Torrent * t, torrents ) {
|
||||||
d += t->downloadedEver( );
|
d += t->downloadedEver( );
|
||||||
f += t->failedEver( );
|
f += t->failedEver( );
|
||||||
|
|
Loading…
Reference in a new issue