Changeset 10775
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt/app.cc
r10731 r10775 160 160 connect( mySession, SIGNAL(torrentsUpdated(tr_benc*,bool)), myWindow, SLOT(refreshActionSensitivity()) ); 161 161 connect( mySession, SIGNAL(torrentsRemoved(tr_benc*)), myModel, SLOT(removeTorrents(tr_benc*)) ); 162 // when the session source gets changed, request a full refresh 163 connect( mySession, SIGNAL(sourceChanged()), this, SLOT(onSessionSourceChanged()) ); 162 164 // when the model sees a torrent for the first time, ask the session for full info on it 163 165 connect( myModel, SIGNAL(torrentsAdded(QSet<int>)), mySession, SLOT(initTorrents(QSet<int>)) ); … … 301 303 302 304 void 305 MyApp :: onSessionSourceChanged( ) 306 { 307 mySession->initTorrents( ); 308 mySession->refreshSessionStats( ); 309 mySession->refreshSessionInfo( ); 310 } 311 312 void 303 313 MyApp :: refreshTorrents( ) 304 314 { -
trunk/qt/app.h
r10532 r10775 47 47 private slots: 48 48 void consentGiven( ); 49 void onSessionSourceChanged( ); 49 50 void refreshPref( int key ); 50 51 void refreshTorrents( );
Note: See TracChangeset
for help on using the changeset viewer.