summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2015-04-19 20:33:46 +0200
committerTannin <devnull@localhost>2015-04-19 20:33:46 +0200
commit0b58653e2d4f3c695981f1346c6d7c6b4c965eeb (patch)
treebd32d3d4ed0afaa26b56c8a526945078a0f576a6 /src
parente47e04dcf2ad8bc0c1a0232f3b94cdb8c977e201 (diff)
bugfix: filter on download list always filtered by file name, not by displayed name
Diffstat (limited to 'src')
-rw-r--r--src/downloadlistsortproxy.cpp2
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;
}