Skip to content
Snippets Groups Projects
Commit 2c8384a3 authored by luyikei's avatar luyikei
Browse files

RecentProjects: Fix the recent projects menu not being created when a project is not loaded

parent 702f23c0
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,7 @@ RecentProjects::RecentProjects( Settings* vlmcSettings, QObject *parent )
{
m_recentsProjects = vlmcSettings->createVar( SettingValue::List, "private/RecentsProjects", QVariantList(),
"", "", SettingValue::Private );
connect( m_recentsProjects, &SettingValue::changed, this, &RecentProjects::updated );
}
QString
......@@ -62,7 +63,6 @@ RecentProjects::remove( const QString &projectFile )
}
}
m_recentsProjects->set( l );
emit updated();
}
void
......@@ -76,5 +76,4 @@ RecentProjects::projectLoaded( const QString& projectName, const QString& projec
l.removeAll( var );
l.insert( 0, var );
m_recentsProjects->set( l );
emit updated();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment