Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
- Status bar displays free space in the download directory (thanks @keizie)
- Priority column in torrents list now shows colored icon (thanks @keizie)

### Fixed
- Label/directory/tracker filter lists in the sidebar now use natural sorting

## [2.9.1] - 2025-12-09
### Fixed
- Changed maximum values of idle limits and speed limits settings to align them with Transmission limitations
Expand Down
7 changes: 3 additions & 4 deletions src/ui/screens/mainwindow/mainwindowsidebar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

#include "rpc/rpc.h"
#include "rpc/serversettings.h"
#include "ui/itemmodels/baseproxymodel.h"
#include "ui/stylehelpers.h"
#include "ui/widgets/tooltipwhenelideddelegate.h"
#include "alltrackersmodel.h"
Expand Down Expand Up @@ -74,9 +75,7 @@ namespace tremotesf {
void init(Rpc* rpc, std::optional<int> sortByRole = {}) {
QAbstractItemModel* actualModel{};
if (sortByRole.has_value()) {
mProxyModel = new QSortFilterProxyModel(this);
mProxyModel->setSourceModel(mModel);
mProxyModel->setSortRole(*sortByRole);
mProxyModel = new BaseProxyModel(mModel, *sortByRole, std::nullopt, this);
mProxyModel->sort(0);
actualModel = mProxyModel;
} else {
Expand Down Expand Up @@ -142,7 +141,7 @@ namespace tremotesf {

TorrentsProxyModel* mTorrentsProxyModel;
BaseTorrentsFiltersSettingsModel* mModel;
QSortFilterProxyModel* mProxyModel{};
BaseProxyModel* mProxyModel{};
};

class StatusFiltersListView final : public BaseListView {
Expand Down
Loading