|
|
@ -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); |
|
|
|