Commit d260c6b9 authored by Frédéric Larue's avatar Frédéric Larue
Browse files

The list of recent projects is updated only if the given entries correspond to existing files.

parent c25ea446
...@@ -86,6 +86,12 @@ void UIMainWindow::updateRecentListEntry( const QString& path ) ...@@ -86,6 +86,12 @@ void UIMainWindow::updateRecentListEntry( const QString& path )
{ {
bool isVeryFirstEntry = m_RecentProjects.empty(); bool isVeryFirstEntry = m_RecentProjects.empty();
// If the given path does not correspond to an existing file, do not add it to the list of recent projects.
QFile fileCheck( path );
if( !fileCheck.exists() )
return;
// Search for the given path in the current list of recent projects. // Search for the given path in the current list of recent projects.
QList< QAction* >::iterator entry; QList< QAction* >::iterator entry;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment