Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Clean old recent images
  • Loading branch information
m-kuhn committed Aug 19, 2015
1 parent 0b2b3ff commit 651a223
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -2777,9 +2777,10 @@ void QgisApp::saveRecentProjectPath( QString projectPath, bool savePreviewImage
mRecentProjects.prepend( projectData );

// Keep the list to 8 items by trimming excess off the bottom
// And remove the associated image
while ( mRecentProjects.count() > 8 )
{
mRecentProjects.pop_back();
QFile( mRecentProjects.takeLast().previewImagePath ).remove();
}

settings.remove( "/UI/recentProjects" );
Expand Down

0 comments on commit 651a223

Please sign in to comment.