diff --git a/src/DockManager.cpp b/src/DockManager.cpp index 13cf731..5b4aefa 100644 --- a/src/DockManager.cpp +++ b/src/DockManager.cpp @@ -700,8 +700,7 @@ QByteArray CDockManager::saveState(int version) const QByteArray xmldata; QXmlStreamWriter s(&xmldata); auto ConfigFlags = CDockManager::configFlags(); - //s.setAutoFormatting(ConfigFlags.testFlag(XmlAutoFormattingEnabled)); - s.setAutoFormatting(true); + s.setAutoFormatting(ConfigFlags.testFlag(XmlAutoFormattingEnabled)); s.writeStartDocument(); s.writeStartElement("QtAdvancedDockingSystem"); s.writeAttribute("Version", QString::number(CurrentVersion)); @@ -719,8 +718,6 @@ QByteArray CDockManager::saveState(int version) const s.writeEndElement(); s.writeEndDocument(); - std::cout << xmldata.toStdString() << std::endl; - return ConfigFlags.testFlag(XmlCompressionEnabled) ? qCompress(xmldata, 9) : xmldata; }