mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-04 00:04:03 -04:00
fix(QgsAuxiliaryStorage): remove tmp file only if it exists
This commit is contained in:
parent
52e71951ee
commit
fcf2a6de3e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user