Skip to content

Commit

Permalink
- fixed minor code error in finishedList
Browse files Browse the repository at this point in the history
  • Loading branch information
Christophe Dumez committed Jul 23, 2007
1 parent 5cc6e6e commit 53d2bc3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/FinishedTorrents.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ void FinishedTorrents::updateFinishedList(){
}
torrent_status torrentStatus = h.status();
if(torrentStatus.state == torrent_status::downloading || (torrentStatus.state != torrent_status::checking_files && torrentStatus.state != torrent_status::queued_for_checking && torrentStatus.progress != 1.)) {
// What are you doing here, go back to download tab!
// What are you doing here? go back to download tab!
qDebug("Info: a torrent was moved from finished to download tab");
deleteFromFinishedList(hash);
emit torrentMovedFromFinishedList(h);
Expand Down Expand Up @@ -278,6 +278,7 @@ void FinishedTorrents::deleteFromFinishedList(QString hash){
int row = getRowFromHash(hash);
if(row == -1){
std::cerr << "Error: couldn't find hash in finished list\n";
return;
}
finishedListModel->removeRow(row);
QFile::remove(misc::qBittorrentPath()+"BT_backup"+QDir::separator()+hash+".finished");
Expand Down

0 comments on commit 53d2bc3

Please sign in to comment.