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:
parent
c9eb584ac8
commit
0873b8d304
2 changed files with 4 additions and 4 deletions
|
@ -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()));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue