Merge pull request #10750 from Chocobo1/modal

Fix unable to control add torrent dialogs when opened simultaneously
This commit is contained in:
Mike Tzou
2019-06-06 23:16:35 +08:00
committed by GitHub
3 changed files with 5 additions and 12 deletions

View File

@@ -261,7 +261,7 @@ void SearchJobWidget::downloadTorrent(const QModelIndex &rowIndex)
const QString siteUrl = m_proxyModel->data(
m_proxyModel->index(rowIndex.row(), SearchSortModel::ENGINE_URL)).toString();
if (torrentUrl.startsWith("bc://bt/", Qt::CaseInsensitive) || torrentUrl.startsWith("magnet:", Qt::CaseInsensitive)) {
if (torrentUrl.startsWith("magnet:", Qt::CaseInsensitive)) {
addTorrentToSession(torrentUrl);
}
else {