Coding style fixup.

This commit is contained in:
Raine M. Ekman
2015-06-11 10:27:09 +03:00
parent f896316de4
commit d9193960fc

View File

@@ -196,15 +196,16 @@ void ConfigManager::setSF2Dir(const QString &sfd)
void ConfigManager::addRecentlyOpenedProject( const QString & _file )
{
if( !_file.endsWith(".mpt", Qt::CaseInsensitive) ) {
m_recentlyOpenedProjects.removeAll( _file );
if( m_recentlyOpenedProjects.size() > 15 )
{
m_recentlyOpenedProjects.removeLast();
}
m_recentlyOpenedProjects.push_front( _file );
ConfigManager::inst()->saveConfigFile();
}
if( !_file.endsWith( ".mpt", Qt::CaseInsensitive ) )
{
m_recentlyOpenedProjects.removeAll( _file );
if( m_recentlyOpenedProjects.size() > 15 )
{
m_recentlyOpenedProjects.removeLast();
}
m_recentlyOpenedProjects.push_front( _file );
ConfigManager::inst()->saveConfigFile();
}
}