mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-23 13:04:23 +00:00
Simplify busy wait.
This commit is contained in:
parent
6cdbf6f869
commit
74a1cce46c
@ -653,9 +653,9 @@ void AddNewTorrentDialog::accept()
|
||||
void AddNewTorrentDialog::reject() {
|
||||
if (m_isMagnet) {
|
||||
disconnect(this, SLOT(updateMetadata(const QTorrentHandle&)));
|
||||
while (true) { // Force cancel
|
||||
if (!m_convertingMagnet)
|
||||
break;
|
||||
while (m_convertingMagnet) {
|
||||
// HACK ???
|
||||
// Force cancel
|
||||
}
|
||||
setMetadataProgressIndicator(false);
|
||||
QBtSession::instance()->deleteTorrent(m_hash, true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user