Skip to content
Permalink
Browse files

Clean old recent images

  • Loading branch information
m-kuhn committed Aug 19, 2015
1 parent 0b2b3ff commit 651a2236c93d76146aa184bfdf354fb1367c8ae7
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/app/qgisapp.cpp
@@ -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" );

0 comments on commit 651a223

Please sign in to comment.
You can’t perform that action at this time.