mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 01:33:07 -07:00
- Fixed torrent switching to finished tab
This commit is contained in:
parent
366d5108c4
commit
4e2ebe5a69
3 changed files with 9 additions and 7 deletions
|
@ -262,7 +262,10 @@ QString FinishedTorrents::getHashFromRow(unsigned int row) const {
|
|||
// Will move it to download tab
|
||||
void FinishedTorrents::deleteTorrent(QString hash){
|
||||
int row = getRowFromHash(hash);
|
||||
Q_ASSERT(row != -1);
|
||||
if(row == -1){
|
||||
qDebug("Torrent is not in finished list, nothing to delete");
|
||||
return;
|
||||
}
|
||||
finishedListModel->removeRow(row);
|
||||
QFile::remove(misc::qBittorrentPath()+"BT_backup"+QDir::separator()+hash+".finished");
|
||||
--nbFinished;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue