Browse Source

Simplify busy wait.

adaptive-webui-19844
sledgehammer999 11 years ago
parent
commit
74a1cce46c
  1. 6
      src/addnewtorrentdialog.cpp

6
src/addnewtorrentdialog.cpp

@ -653,9 +653,9 @@ void AddNewTorrentDialog::accept() @@ -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…
Cancel
Save