XML file version is now 0.1

This commit is contained in:
Alexandre Quessy
2014-04-30 22:28:41 -04:00
parent be7cf11246
commit 3dcd51ef8d
3 changed files with 12 additions and 3 deletions

View File

@@ -41,8 +41,10 @@ bool ProjectReader::readFile(QIODevice *device)
}
QDomElement root = doc.documentElement();
if (root.tagName() != "project" || root.attribute("version") != "1.0") {
_xml.raiseError(QObject::tr("The file is not a mapmap version 1.0 file."));
// The handling of the version number will get fancier as we go.
if (root.tagName() != "project" || root.attribute("version") != "0.1")
{
_xml.raiseError(QObject::tr("The file is not a mapmap version 0.1 file."));
return false;
}