mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-04-03 22:19:36 +02:00
Fix: #179 Paints and mappings renamings are now saved in file
This commit is contained in:
@@ -54,7 +54,7 @@ void ProjectWriter::writeItem(Paint *item)
|
||||
{
|
||||
_xml.writeStartElement("paint");
|
||||
_xml.writeAttribute("id", QString::number(item->getId()));
|
||||
//_xml.writeAttribute("name", item->getName());
|
||||
_xml.writeAttribute("name", item->getName());
|
||||
_xml.writeAttribute("type", item->getType());
|
||||
|
||||
if (item->getType() == "media")
|
||||
@@ -142,6 +142,7 @@ void ProjectWriter::writeItem(Mapping *item)
|
||||
_xml.writeStartElement("mapping");
|
||||
qDebug() << "ID: " << item->getId() << endl;
|
||||
_xml.writeAttribute("id", QString::number(item->getId()));
|
||||
_xml.writeAttribute("name", item->getName());
|
||||
_xml.writeAttribute("paint_id", QString::number(item->getPaint()->getId()));
|
||||
_xml.writeAttribute("type", item->getType());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user