Merge pull request #2091 from softrabbit/issue1812

Don't save templates in "recently opened" list
This commit is contained in:
Tres Finocchiaro
2015-06-11 09:48:47 -04:00

View File

@@ -196,13 +196,16 @@ void ConfigManager::setSF2Dir(const QString &sfd)
void ConfigManager::addRecentlyOpenedProject( const QString & _file )
{
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();
}
}