From 2370d79ca6d96c3eba5394c2cced6c4da220149a Mon Sep 17 00:00:00 2001 From: Uwe Kindler Date: Tue, 1 Nov 2022 11:39:34 +0100 Subject: [PATCH] Removed debug code from DockManager saveState function --- src/DockManager.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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; }