From d25a81071c078585f14176283b89e1a6b0ad5795 Mon Sep 17 00:00:00 2001 From: Tannin Date: Wed, 10 Jun 2015 21:22:54 +0200 Subject: more generic solution to the problem fixed in changeset bb74f8eb639c, now also applied in another location --- src/modlistsortproxy.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/modlistsortproxy.h') diff --git a/src/modlistsortproxy.h b/src/modlistsortproxy.h index 93092ba7..ce7e5eb5 100644 --- a/src/modlistsortproxy.h +++ b/src/modlistsortproxy.h @@ -58,6 +58,8 @@ public: virtual bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent); + virtual void setSourceModel(QAbstractItemModel *sourceModel) override; + /** * @brief enable all mods visible under the current filter **/ @@ -112,6 +114,11 @@ private: bool filterMatchesModAnd(ModInfo::Ptr info, bool enabled) const; bool filterMatchesModOr(ModInfo::Ptr info, bool enabled) const; +private slots: + + void aboutToChangeData(); + void postDataChanged(); + private: Profile *m_Profile; @@ -124,6 +131,8 @@ private: bool m_FilterActive; FilterMode m_FilterMode; + std::vector m_PreChangeFilters; + }; #endif // MODLISTSORTPROXY_H -- cgit v1.3.1