Skip to content

Commit

Permalink
Fix truncation of recent project list removes too many items, raises …
Browse files Browse the repository at this point in the history
…a warning
  • Loading branch information
nyalldawson committed Oct 17, 2022
1 parent d240a76 commit 07db65b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -5260,7 +5260,7 @@ void QgisApp::saveRecentProjectPath( bool savePreviewImage, const QIcon &iconOve
{
const QString previewImagePath = mRecentProjects.takeLast().previewImagePath;
if ( QFileInfo::exists( previewImagePath ) )
QFile( mRecentProjects.takeLast().previewImagePath ).remove();
QFile( previewImagePath ).remove();
}

// Persist the list
Expand Down

0 comments on commit 07db65b

Please sign in to comment.