mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-06 00:07:29 -04:00
Merge pull request #55782 from elpaso/bugfix-gh55711-rat-dbf-save
RAT: fix save to DBF
This commit is contained in:
commit
452c344b1e
@ -143,7 +143,7 @@ void QgsCreateRasterAttributeTableDialog::accept()
|
||||
if ( storageIsFile )
|
||||
{
|
||||
const QString destinationPath { filePath() };
|
||||
if ( QFile::exists( destinationPath ) && QMessageBox::warning( nullptr, tr( "Confirm Overwrite" ), tr( "Are you sure you want to overwrite the existing attribute table at '%1'?" ).arg( destinationPath ), QMessageBox::Yes | QMessageBox::No, QMessageBox::No ) == QMessageBox::Yes )
|
||||
if ( ! QFile::exists( destinationPath ) || QMessageBox::warning( nullptr, tr( "Confirm Overwrite" ), tr( "Are you sure you want to overwrite the existing attribute table at '%1'?" ).arg( destinationPath ), QMessageBox::Yes | QMessageBox::No, QMessageBox::No ) == QMessageBox::Yes )
|
||||
{
|
||||
success = rat->writeToFile( destinationPath, &errorMessage );
|
||||
if ( ! success )
|
||||
|
Loading…
x
Reference in New Issue
Block a user