Fixes #2272 and other problems with the templates

Removes the non-intuitive saving of the default template in
MainWindow::createNewProject.

Other fixed problems:
* User entries were not shown in the menu of the tool button that
creates new projects from templates. Now they are shown as well.

Other changes:
* Adds a new option "New from template" in the file menu. It shows the
same menu as the tool button.
This commit is contained in:
Michael Gregorius
2015-08-16 15:46:10 +02:00
parent 5449706527
commit 8c93b6bfee
2 changed files with 25 additions and 24 deletions

View File

@@ -120,6 +120,11 @@ public:
return dataDir() + PROJECTS_PATH;
}
QString factoryTemplatesDir() const
{
return factoryProjectsDir() + TEMPLATE_PATH;
}
QString factoryPresetsDir() const
{
return dataDir() + PRESETS_PATH;