From 6fc90d1f18ecc5696896388b6ea42f00d7833d39 Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Mon, 28 Feb 2011 16:08:14 +0200 Subject: [PATCH] GUI: Write ignore paths to project file. --- gui/projectfile.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/gui/projectfile.cpp b/gui/projectfile.cpp index cba444092..8d5310d16 100644 --- a/gui/projectfile.cpp +++ b/gui/projectfile.cpp @@ -397,6 +397,19 @@ bool ProjectFile::Write(const QString &filename) 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(); file.close(); return true;