Changeset 13717


Ignore:
Timestamp:
Dec 29, 2012, 9:04:10 PM (9 years ago)
Author:
jordan
Message:

in refreshTrayIcon(), use TorrentModel?.getUploadSpeed(), .getDownloadSpeed()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qt/mainwin.cc

    r13695 r13717  
    721721TrMainWindow :: refreshTrayIcon( )
    722722{
    723     Speed u, d;
    724723    const QString idle = tr( "Idle" );
    725 
    726     foreach( int id, myModel.getIds( ) ) {
    727         const Torrent * tor = myModel.getTorrentFromId( id );
    728         u += tor->uploadSpeed( );
    729         d += tor->downloadSpeed( );
    730     }
     724    const Speed u (myModel.getUploadSpeed());
     725    const Speed d (myModel.getDownloadSpeed());
    731726
    732727    myTrayIcon.setToolTip( tr( "Transmission\nUp: %1\nDown: %2" )
Note: See TracChangeset for help on using the changeset viewer.