fix: use makeShared for importing components

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu 2023-03-01 10:19:59 +01:00
parent b46aca52ee
commit 651e511ff0
No known key found for this signature in database
GPG Key ID: E13DFD4B47127951

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();