From 02307e9f3b0398009dd43b809108a5304f48711a Mon Sep 17 00:00:00 2001 From: Daniel Buckmaster Date: Sun, 22 Feb 2015 11:52:28 +1100 Subject: [PATCH] Rename 'path' to 'name' and require a package/ subdir. This is so that you can put files in a package which *aren't* copied into the project. For example, a .git directory or a README shouldn't make their way to your project. One, because there would be conflicts, and two, because you don't want them. --- source/projectList.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/projectList.cpp b/source/projectList.cpp index 1ec5e4d..64f5e4b 100644 --- a/source/projectList.cpp +++ b/source/projectList.cpp @@ -272,11 +272,11 @@ void TemplateEntry::findPackages() QDomElement e = n.toElement(); if(!e.isNull() && e.tagName() == "package") { - if(e.hasAttribute("path") && e.hasAttribute("inclusion")) + if(e.hasAttribute("name") && e.hasAttribute("inclusion")) { - QString title = e.attribute("path"); + QString name = e.attribute("name"); QString inclusion = e.attribute("inclusion"); - QDir packageDir(packageDirName + QDir::separator() + title); + QDir packageDir(packageDirName + QDir::separator() + name + QDir::separator() + "package"); QString path = packageDir.absolutePath(); if(inclusion == "required")