diff --git a/cockatrice/src/dlg_filter_games.cpp b/cockatrice/src/dlg_filter_games.cpp index 3d82f419..cb369d49 100644 --- a/cockatrice/src/dlg_filter_games.cpp +++ b/cockatrice/src/dlg_filter_games.cpp @@ -13,7 +13,7 @@ #include #include -DlgFilterGames::DlgFilterGames(const QMap &_allGameTypes, GamesProxyModel *_gamesProxyModel, QWidget *parent) +DlgFilterGames::DlgFilterGames(const QMap &_allGameTypes, const GamesProxyModel *_gamesProxyModel, QWidget *parent) : QDialog(parent), allGameTypes(_allGameTypes), gamesProxyModel(_gamesProxyModel) diff --git a/cockatrice/src/dlg_filter_games.h b/cockatrice/src/dlg_filter_games.h index 31723cca..7cd02c89 100644 --- a/cockatrice/src/dlg_filter_games.h +++ b/cockatrice/src/dlg_filter_games.h @@ -23,7 +23,7 @@ private: const QMap &allGameTypes; // This needs a const someplace - GamesProxyModel *gamesProxyModel; + const GamesProxyModel *gamesProxyModel; /* * The game type might contain special characters, so to use it in @@ -33,7 +33,7 @@ private: private slots: void actOk(); public: - DlgFilterGames(const QMap &_allGameTypes, GamesProxyModel *_gamesProxyModel, QWidget *parent = 0); + DlgFilterGames(const QMap &_allGameTypes, const GamesProxyModel *_gamesProxyModel, QWidget *parent = 0); bool getUnavailableGamesVisible() const; void setUnavailableGamesVisible(bool _unavailableGamesVisible);