Merge pull request #62000 from benoitdm-oslandia/fix/aux_storage_delete_file

fix(QgsAuxiliaryStorage): remove tmp file only if it exists
This commit is contained in:
Benoit D.-M. - oslandia 2025-05-27 07:28:23 +02:00 committed by GitHub
commit af9b53f7de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -635,7 +635,8 @@ QgsAuxiliaryStorage::QgsAuxiliaryStorage( const QString &filename, bool copy )
QgsAuxiliaryStorage::~QgsAuxiliaryStorage()
{
QFile::remove( mTmpFileName );
if ( QFile::exists( mTmpFileName ) )
QFile::remove( mTmpFileName );
}
bool QgsAuxiliaryStorage::isValid() const