Skip to content

Commit

Permalink
Rename 'path' to 'name' and require a package/ subdir.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
crabmusket committed Feb 22, 2015
1 parent b4d16d7 commit 02307e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/projectList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 02307e9

Please sign in to comment.