mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-10 00:13:55 -04:00
Avoid qt warning on project load when thumbnail doesn't exist
This commit is contained in:
parent
676161762a
commit
65ac68bb0b
@ -4508,7 +4508,9 @@ void QgisApp::saveRecentProjectPath( bool savePreviewImage )
|
||||
// And remove the associated image
|
||||
while ( static_cast< uint >( mRecentProjects.count() ) > maxProjects + pinnedCount )
|
||||
{
|
||||
QFile( mRecentProjects.takeLast().previewImagePath ).remove();
|
||||
const QString previewImagePath = mRecentProjects.takeLast().previewImagePath;
|
||||
if ( QFileInfo::exists( previewImagePath ) )
|
||||
QFile( mRecentProjects.takeLast().previewImagePath ).remove();
|
||||
}
|
||||
|
||||
// Persist the list
|
||||
|
Loading…
x
Reference in New Issue
Block a user