mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Simplify busy wait.
This commit is contained in:
parent
6cdbf6f869
commit
74a1cce46c
1 changed files with 3 additions and 3 deletions
|
@ -653,9 +653,9 @@ void AddNewTorrentDialog::accept()
|
||||||
void AddNewTorrentDialog::reject() {
|
void AddNewTorrentDialog::reject() {
|
||||||
if (m_isMagnet) {
|
if (m_isMagnet) {
|
||||||
disconnect(this, SLOT(updateMetadata(const QTorrentHandle&)));
|
disconnect(this, SLOT(updateMetadata(const QTorrentHandle&)));
|
||||||
while (true) { // Force cancel
|
while (m_convertingMagnet) {
|
||||||
if (!m_convertingMagnet)
|
// HACK ???
|
||||||
break;
|
// Force cancel
|
||||||
}
|
}
|
||||||
setMetadataProgressIndicator(false);
|
setMetadataProgressIndicator(false);
|
||||||
QBtSession::instance()->deleteTorrent(m_hash, true);
|
QBtSession::instance()->deleteTorrent(m_hash, true);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue