Fix column sort in search engine. Closes #2621

This commit is contained in:
ngosang
2015-06-28 15:24:26 +02:00
parent 326a74425f
commit b23608ec35
3 changed files with 11 additions and 3 deletions

View File

@@ -88,7 +88,7 @@ SearchTab::SearchTab(SearchEngine *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(), "red");
setRowColor(index.row(), "blue");
parent->downloadTorrent(engine_url, torrent_url);
}