fix(QgsAuxiliaryStorage): remove tmp file only if it exists

This commit is contained in:
bdm-oslandia 2025-05-26 16:11:41 +02:00
parent 52e71951ee
commit fcf2a6de3e

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