mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-14 02:27:09 -07:00
Fixed possible crash when deleting a torrent permanently
This commit is contained in:
parent
2dc75cb98d
commit
2d24b468b6
2 changed files with 5 additions and 2 deletions
|
@ -42,8 +42,8 @@ class subDeleteThread : public QThread {
|
|||
}
|
||||
|
||||
~subDeleteThread(){
|
||||
wait();
|
||||
qDebug("subDeleteThread successfuly deleted");
|
||||
//wait();
|
||||
}
|
||||
|
||||
signals:
|
||||
|
@ -58,8 +58,8 @@ class subDeleteThread : public QThread {
|
|||
else
|
||||
emit deletionFailureST(this);*/
|
||||
arb->removeFromFS(save_path);
|
||||
emit deletionSuccessST(this);
|
||||
delete arb;
|
||||
emit deletionSuccessST(this);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue