ResourcesDB: do not save topLevelNode in XML cache files - saves one
level of indentation and makes format more consistent
This commit is contained in:
@@ -83,7 +83,10 @@ void ResourcesDB::save( const QString & _file )
|
||||
{
|
||||
multimediaProject m( multimediaProject::ResourcesDatabase );
|
||||
|
||||
saveTreeItem( &m_topLevelNode, m, m.content() );
|
||||
if( m_topLevelNode.getChild( 0 ) )
|
||||
{
|
||||
saveTreeItem( m_topLevelNode.getChild( 0 ), m, m.content() );
|
||||
}
|
||||
|
||||
m.writeFile( _file );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user