Remember sub sort column of transfer list

This commit is contained in:
jagannatharjun
2021-03-13 11:36:01 +05:30
parent 1568e98d43
commit cf5e833898
2 changed files with 15 additions and 6 deletions

View File

@@ -30,6 +30,7 @@
#include <QSortFilterProxyModel>
#include "base/settingvalue.h"
#include "base/torrentfilter.h"
namespace BitTorrent
@@ -61,6 +62,6 @@ private:
bool matchFilter(int sourceRow, const QModelIndex &sourceParent) const;
TorrentFilter m_filter;
mutable int m_subSortColumn = -1;
mutable int m_sortColumn = -1;
mutable CachedSettingValue<int> m_subSortColumn;
mutable int m_lastSortColumn = -1;
};