mirror of
https://github.com/LMMS/lmms.git
synced 2026-04-01 12:53:49 -04:00
Change the location of the default template directory
Changed the location from lmms/projects/templates to lmms/templates. This new location is used for loading and saving of the default tempate default.mpt
This commit is contained in:
@@ -738,14 +738,13 @@ void MainWindow::createNewProject()
|
||||
{
|
||||
Engine::getSong()->createNewProject();
|
||||
}
|
||||
QString default_template = ConfigManager::inst()->userProjectsDir()
|
||||
+ "templates/default.mpt";
|
||||
QString default_template = ConfigManager::inst()->userTemplateDir()
|
||||
+ "default.mpt";
|
||||
|
||||
//if we dont have a user default template, make one
|
||||
if( !QFile::exists( default_template ) )
|
||||
{
|
||||
Engine::getSong()->saveProjectFile( ConfigManager::inst()->userProjectsDir()
|
||||
+ "templates/default.mpt" );
|
||||
Engine::getSong()->saveProjectFile( default_template );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user