ResourcesDB: do not save topLevelNode in XML cache files - saves one

level of indentation and makes format more consistent
This commit is contained in:
Tobias Doerffel
2009-03-10 18:53:15 +01:00
parent 2d7b1f1211
commit 075b894b7e

View File

@@ -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 );
}