From 45fbbde7924ec189df41c2821a9fb10714e60331 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Fri, 17 Feb 2023 09:44:15 -0600 Subject: [PATCH] making songModel a pointer --- src/cpp/songsqlmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpp/songsqlmodel.cpp b/src/cpp/songsqlmodel.cpp index 3c3bc9e..6e06971 100644 --- a/src/cpp/songsqlmodel.cpp +++ b/src/cpp/songsqlmodel.cpp @@ -714,7 +714,7 @@ void SongSqlModel::updateFontSize(const int &row, const int &fontSize) { SongProxyModel::SongProxyModel(QObject *parent) :QSortFilterProxyModel(parent) { - SongSqlModel songModel = new SongSqlModel; + SongSqlModel *songModel = new SongSqlModel; setSourceModel(songModel); setDynamicSortFilter(true); setFilterRole(Qt::UserRole + 1);