mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 09:43:07 -07:00
- fixed minor code error in finishedList
This commit is contained in:
parent
5cc6e6e8f4
commit
53d2bc34fc
1 changed files with 2 additions and 1 deletions
|
@ -242,7 +242,7 @@ void FinishedTorrents::updateFinishedList(){
|
||||||
}
|
}
|
||||||
torrent_status torrentStatus = h.status();
|
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.)) {
|
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");
|
qDebug("Info: a torrent was moved from finished to download tab");
|
||||||
deleteFromFinishedList(hash);
|
deleteFromFinishedList(hash);
|
||||||
emit torrentMovedFromFinishedList(h);
|
emit torrentMovedFromFinishedList(h);
|
||||||
|
@ -278,6 +278,7 @@ void FinishedTorrents::deleteFromFinishedList(QString hash){
|
||||||
int row = getRowFromHash(hash);
|
int row = getRowFromHash(hash);
|
||||||
if(row == -1){
|
if(row == -1){
|
||||||
std::cerr << "Error: couldn't find hash in finished list\n";
|
std::cerr << "Error: couldn't find hash in finished list\n";
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
finishedListModel->removeRow(row);
|
finishedListModel->removeRow(row);
|
||||||
QFile::remove(misc::qBittorrentPath()+"BT_backup"+QDir::separator()+hash+".finished");
|
QFile::remove(misc::qBittorrentPath()+"BT_backup"+QDir::separator()+hash+".finished");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue