GUI: Write ignore paths to project file.

This commit is contained in:
Kimmo Varis 2011-02-28 16:08:14 +02:00
parent bd405c454a
commit 6fc90d1f18
1 changed files with 13 additions and 0 deletions

View File

@ -397,6 +397,19 @@ bool ProjectFile::Write(const QString &filename)
xmlWriter.writeEndElement(); xmlWriter.writeEndElement();
} }
if (!mIgnoredPaths.isEmpty())
{
xmlWriter.writeStartElement(IgnoreElementName);
QString path;
foreach(path, mIgnoredPaths)
{
xmlWriter.writeStartElement(IgnorePathName);
xmlWriter.writeAttribute(IgnorePathNameAttrib, path);
xmlWriter.writeEndElement();
}
xmlWriter.writeEndElement();
}
xmlWriter.writeEndDocument(); xmlWriter.writeEndDocument();
file.close(); file.close();
return true; return true;