diff options
| author | Tannin <devnull@localhost> | 2015-04-19 20:33:46 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2015-04-19 20:33:46 +0200 |
| commit | 0b58653e2d4f3c695981f1346c6d7c6b4c965eeb (patch) | |
| tree | bd32d3d4ed0afaa26b56c8a526945078a0f576a6 /src/downloadlistsortproxy.cpp | |
| parent | e47e04dcf2ad8bc0c1a0232f3b94cdb8c977e201 (diff) | |
bugfix: filter on download list always filtered by file name, not by displayed name
Diffstat (limited to 'src/downloadlistsortproxy.cpp')
| -rw-r--r-- | src/downloadlistsortproxy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/downloadlistsortproxy.cpp b/src/downloadlistsortproxy.cpp index 59d7bce6..deddc0cf 100644 --- a/src/downloadlistsortproxy.cpp +++ b/src/downloadlistsortproxy.cpp @@ -60,7 +60,7 @@ bool DownloadListSortProxy::filterAcceptsRow(int source_row, const QModelIndex&) if (m_CurrentFilter.length() == 0) {
return true;
} else if (source_row < m_Manager->numTotalDownloads()) {
- return m_Manager->getFileName(source_row).contains(m_CurrentFilter, Qt::CaseInsensitive);
+ return sourceModel()->index(source_row, 0).data().toString().contains(m_CurrentFilter, Qt::CaseInsensitive);
} else {
return false;
}
|
