@ -1300,7 +1300,7 @@ void GUI::configureSession(bool deleteOptions){
@@ -1300,7 +1300,7 @@ void GUI::configureSession(bool deleteOptions){
void GUI : : on_actionPause_All_triggered ( ) {
QString fileHash ;
// Pause all torrents
BTSession . pauseAllTorrents ( ) ;
if ( BTSession . pauseAllTorrents ( ) ) {
// update download list
unsigned int nbRows = DLListModel - > rowCount ( ) ;
for ( unsigned int i = 0 ; i < nbRows ; + + i ) {
@ -1320,6 +1320,7 @@ void GUI::on_actionPause_All_triggered(){
@@ -1320,6 +1320,7 @@ void GUI::on_actionPause_All_triggered(){
}
setInfoBar ( tr ( " All downloads were paused. " ) ) ;
}
}
// pause selected items in the list
void GUI : : on_actionPause_triggered ( ) {
@ -1351,7 +1352,7 @@ void GUI::on_actionPause_triggered(){
@@ -1351,7 +1352,7 @@ void GUI::on_actionPause_triggered(){
void GUI : : on_actionStart_All_triggered ( ) {
QString fileHash ;
// Pause all torrents
BTSession . resumeAllTorrents ( ) ;
if ( BTSession . resumeAllTorrents ( ) ) {
// update download list
unsigned int nbRows = DLListModel - > rowCount ( ) ;
for ( unsigned int i = 0 ; i < nbRows ; + + i ) {
@ -1365,6 +1366,7 @@ void GUI::on_actionStart_All_triggered(){
@@ -1365,6 +1366,7 @@ void GUI::on_actionStart_All_triggered(){
}
setInfoBar ( tr ( " All downloads were resumed. " ) ) ;
}
}
// start selected items in the list
void GUI : : on_actionStart_triggered ( ) {