From 4791569790e9695512248a9acdfbcd1c96f13967 Mon Sep 17 00:00:00 2001 From: Mikaƫl Capelle Date: Wed, 27 May 2020 22:46:03 +0200 Subject: Ignore filter-only content when sorting. --- src/modlistsortproxy.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/modlistsortproxy.h') diff --git a/src/modlistsortproxy.h b/src/modlistsortproxy.h index 3a29b7f7..bf5c077a 100644 --- a/src/modlistsortproxy.h +++ b/src/modlistsortproxy.h @@ -25,6 +25,7 @@ along with Mod Organizer. If not, see . #include "modlist.h" class Profile; +class OrganizerCore; class ModListSortProxy : public QSortFilterProxyModel { @@ -72,7 +73,7 @@ public: public: - explicit ModListSortProxy(Profile *profile, QObject *parent = 0); + explicit ModListSortProxy(Profile *profile, OrganizerCore * organizer); void setProfile(Profile *profile); @@ -154,6 +155,8 @@ private slots: void postDataChanged(); private: + OrganizerCore* m_Organizer; + Profile* m_Profile; std::vector m_Criteria; QString m_Filter; -- cgit v1.3.1