mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-08 22:07:53 +00:00
Refactor in searchjob to always color visited entries
Now it colors multiple entries, when visited at once, via the hotkey or the Download button.
This commit is contained in:
parent
c55daeec38
commit
ce3e68670d
@ -164,7 +164,6 @@ SearchJobWidget::~SearchJobWidget()
|
||||
|
||||
void SearchJobWidget::onItemDoubleClicked(const QModelIndex &index)
|
||||
{
|
||||
setRowColor(index.row(), QApplication::palette().color(QPalette::LinkVisited));
|
||||
downloadTorrent(index);
|
||||
}
|
||||
|
||||
@ -257,6 +256,7 @@ void SearchJobWidget::downloadTorrent(const QModelIndex &rowIndex)
|
||||
connect(downloadHandler, &SearchDownloadHandler::downloadFinished, this, &SearchJobWidget::addTorrentToSession);
|
||||
connect(downloadHandler, &SearchDownloadHandler::downloadFinished, downloadHandler, &SearchDownloadHandler::deleteLater);
|
||||
}
|
||||
setRowColor(rowIndex.row(), QApplication::palette().color(QPalette::LinkVisited));
|
||||
}
|
||||
|
||||
void SearchJobWidget::addTorrentToSession(const QString &source)
|
||||
|
Loading…
Reference in New Issue
Block a user