Commit 182368a5 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Settings: Don't assume toString will always return a valid value

parent 3160ef2c
......@@ -95,6 +95,8 @@ Settings::save( QXmlStreamWriter& project ) const
continue ;
project.writeStartElement( "setting" );
project.writeAttribute( "key", (*it)->key() );
if ( (*it)->get().canConvert<QString>() == false )
vlmcWarning() << "Can't serialize" << (*it)->key();
project.writeAttribute( "value", (*it)->get().toString() );
project.writeEndElement();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment