From 74a1cce46c6eb9aa9199ce619b828c54b3d3c324 Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Sun, 1 Sep 2013 16:22:21 +0300 Subject: [PATCH] Simplify busy wait. --- src/addnewtorrentdialog.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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);