fix: prevent container detaching in ResourceFolderModel

and use const accessors whenever we can!

Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
flow
2022-09-16 20:02:21 -03:00
parent c9eb584ac8
commit 0873b8d304
2 changed files with 4 additions and 4 deletions

View File

@ -234,7 +234,7 @@ auto ModFolderModel::allMods() -> QList<Mod*>
{
QList<Mod*> mods;
for (auto& res : m_resources) {
for (auto& res : qAsConst(m_resources)) {
mods.append(static_cast<Mod*>(res.get()));
}