diff options
author | flow <flowlnlnln@gmail.com> | 2022-08-11 18:24:26 -0300 |
---|---|---|
committer | flow <flowlnlnln@gmail.com> | 2022-08-20 10:48:00 -0300 |
commit | 92aa24ae345c7b50028ea672c0d175d87e906c59 (patch) | |
tree | b67fa48e2f542fcb7f134da7b39c3b42a62ce1bd /launcher/minecraft/mod/ModFolderModel.h | |
parent | 97a74d5c1f00a11d331a41b16690f7202fe102a3 (diff) | |
download | PrismLauncher-92aa24ae345c7b50028ea672c0d175d87e906c59.tar.gz PrismLauncher-92aa24ae345c7b50028ea672c0d175d87e906c59.tar.bz2 PrismLauncher-92aa24ae345c7b50028ea672c0d175d87e906c59.zip |
fix: don't give shared pointer to obj. external to the model
It causes some weird problems and adds refcounting overhead.
Signed-off-by: flow <flowlnlnln@gmail.com>
Diffstat (limited to 'launcher/minecraft/mod/ModFolderModel.h')
-rw-r--r-- | launcher/minecraft/mod/ModFolderModel.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/launcher/minecraft/mod/ModFolderModel.h b/launcher/minecraft/mod/ModFolderModel.h index b1f30710..7fe830c2 100644 --- a/launcher/minecraft/mod/ModFolderModel.h +++ b/launcher/minecraft/mod/ModFolderModel.h @@ -101,8 +101,8 @@ public: QDir indexDir() { return { QString("%1/.index").arg(dir().absolutePath()) }; } - auto selectedMods(QModelIndexList& indexes) -> QList<Mod::Ptr>; - auto allMods() -> QList<Mod::Ptr>; + auto selectedMods(QModelIndexList& indexes) -> QList<Mod*>; + auto allMods() -> QList<Mod*>; RESOURCE_HELPERS(Mod) |