mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-01 05:08:05 -06:00
Move basic search-related code into Core.
Also use qBittorrent torrent file download routines instead of nova2dl.py script.
This commit is contained in:
committed by
Vladimir Golovnev (qlassez)
parent
8754fd5646
commit
54979e6b53
@@ -97,10 +97,9 @@ SearchTab::SearchTab(SearchWidget *parent) : QWidget(), parent(parent)
|
||||
}
|
||||
|
||||
void SearchTab::downloadSelectedItem(const QModelIndex& index) {
|
||||
QString engine_url = proxyModel->data(proxyModel->index(index.row(), SearchSortModel::ENGINE_URL)).toString();
|
||||
QString torrent_url = proxyModel->data(proxyModel->index(index.row(), SearchSortModel::DL_LINK)).toString();
|
||||
setRowColor(index.row(), "blue");
|
||||
parent->downloadTorrent(engine_url, torrent_url);
|
||||
parent->downloadTorrent(torrent_url);
|
||||
}
|
||||
|
||||
SearchTab::~SearchTab() {
|
||||
|
||||
Reference in New Issue
Block a user