summaryrefslogtreecommitdiff
path: root/src/organizercore.cpp
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2020-05-28 19:48:21 +0200
committerMikaël Capelle <capelle.mikael@gmail.com>2020-05-28 19:48:21 +0200
commitd2b7a1a321d5cf496860f717eccdfb9487621169 (patch)
treead20b2202c9632189fc80a6664de2ea39d72ceca /src/organizercore.cpp
parent4791569790e9695512248a9acdfbcd1c96f13967 (diff)
Expose ModDataContentHolder from OrganizerCore instead of vector of Content.
Diffstat (limited to 'src/organizercore.cpp')
-rw-r--r--src/organizercore.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/organizercore.cpp b/src/organizercore.cpp
index 45fe5220..14f85ac0 100644
--- a/src/organizercore.cpp
+++ b/src/organizercore.cpp
@@ -138,10 +138,10 @@ OrganizerCore::OrganizerCore(Settings &settings)
connect(this, &OrganizerCore::managedGameChanged, [this](IPluginGame const* gamePlugin) {
ModDataContent* contentFeature = gamePlugin->feature<ModDataContent>();
if (contentFeature) {
- m_Contents = contentFeature->getAllContents();
+ m_Contents = ModDataContentHolder(contentFeature->getAllContents());
}
else {
- m_Contents = {};
+ m_Contents = ModDataContentHolder();
}
});