Merge pull request #895 from Scrumplex/fix-component-creation

Use makeShared for importing components
This commit is contained in:
flow 2023-03-01 12:08:46 +00:00 committed by GitHub
commit 9f202caf93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -763,7 +763,7 @@ bool PackProfile::installComponents(QStringList selectedFiles)
continue;
}
appendComponent(new Component(this, versionFile->uid, versionFile));
appendComponent(makeShared<Component>(this, versionFile->uid, versionFile));
}
scheduleSave();