summaryrefslogtreecommitdiff
path: root/src/modlistview.cpp
diff options
context:
space:
mode:
authorJonathan Feenstra <26406078+JonathanFeenstra@users.noreply.github.com>2026-01-11 17:31:26 +0100
committerGitHub <noreply@github.com>2026-01-11 17:31:26 +0100
commitaa44561e86b6520ee0ab10a58db52b6fdd77d991 (patch)
tree0437239c99bb71d08b74bd590aee7cd019a412d1 /src/modlistview.cpp
parent717b5ac389ea15350d32f813a3f03d908de0ab06 (diff)
Change IOrganizer::profile return type to a shared_ptr (#2322)
Diffstat (limited to 'src/modlistview.cpp')
-rw-r--r--src/modlistview.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modlistview.cpp b/src/modlistview.cpp
index 6091021b..7389c3a2 100644
--- a/src/modlistview.cpp
+++ b/src/modlistview.cpp
@@ -735,7 +735,8 @@ void ModListView::setup(OrganizerCore& core, CategoryFactory& factory, MainWindo
});
// proxy for various group by
- m_byPriorityProxy = new ModListByPriorityProxy(core.currentProfile(), core, this);
+ m_byPriorityProxy =
+ new ModListByPriorityProxy(core.currentProfile().get(), core, this);
m_byCategoryProxy = new QtGroupingProxy(QModelIndex(), ModList::COL_CATEGORY,
ModList::GroupingRole, 0, ModList::AggrRole);
m_byNexusIdProxy = new QtGroupingProxy(
@@ -758,7 +759,7 @@ void ModListView::setup(OrganizerCore& core, CategoryFactory& factory, MainWindo
});
// the top-level proxy
- m_sortProxy = new ModListSortProxy(core.currentProfile(), &core);
+ m_sortProxy = new ModListSortProxy(core.currentProfile().get(), &core);
setModel(m_sortProxy);
connect(m_sortProxy, &ModList::modelReset, [=] {
refreshExpandedItems();