fix: use makeShared for importing components
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
		@@ -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();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user