diff --git a/src/addnewtorrentdialog.cpp b/src/addnewtorrentdialog.cpp index 222db86d1..6e66bbdc6 100644 --- a/src/addnewtorrentdialog.cpp +++ b/src/addnewtorrentdialog.cpp @@ -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);