diff --git a/src/gui/torrentcontentfiltermodel.cpp b/src/gui/torrentcontentfiltermodel.cpp index d774168d2..9659129ca 100644 --- a/src/gui/torrentcontentfiltermodel.cpp +++ b/src/gui/torrentcontentfiltermodel.cpp @@ -42,6 +42,7 @@ TorrentContentFilterModel::TorrentContentFilterModel(QObject *parent) setFilterRole(TorrentContentModel::UnderlyingDataRole); setDynamicSortFilter(true); setSortCaseSensitivity(Qt::CaseInsensitive); + setSortRole(TorrentContentModel::UnderlyingDataRole); } TorrentContentModel *TorrentContentFilterModel::model() const diff --git a/src/gui/transferlistsortmodel.cpp b/src/gui/transferlistsortmodel.cpp index 9c72ce40e..4177eb325 100644 --- a/src/gui/transferlistsortmodel.cpp +++ b/src/gui/transferlistsortmodel.cpp @@ -41,6 +41,7 @@ TransferListSortModel::TransferListSortModel(QObject *parent) : QSortFilterProxyModel {parent} { + setSortRole(TransferListModel::UnderlyingDataRole); QMetaType::registerComparators(); }