[vlmc-devel] Settings: Improve settings file readability

Hugo Beauzée-Luyssen git at videolan.org
Sun Mar 30 17:48:40 CEST 2014


vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Sun Mar 30 16:54:40 2014 +0300| [3160ef2c4d8701adefe5ef12de53ea611be27f2c] | committer: Hugo Beauzée-Luyssen

Settings: Improve settings file readability

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=3160ef2c4d8701adefe5ef12de53ea611be27f2c
---

 src/Settings/Settings.cpp |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/Settings/Settings.cpp b/src/Settings/Settings.cpp
index eaa687f..dcf153e 100644
--- a/src/Settings/Settings.cpp
+++ b/src/Settings/Settings.cpp
@@ -149,6 +149,7 @@ Settings::save() const
         return ;
     QByteArray          settingsContent;
     QXmlStreamWriter    streamWriter( &settingsContent );
+    streamWriter.setAutoFormatting( true );
     save( streamWriter );
     m_settingsFile->open( QFile::WriteOnly );
     m_settingsFile->write( settingsContent );



More information about the Vlmc-devel mailing list