Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Add an error message on auxiliary field deletion
- Loading branch information
Showing
with
8 additions
and
0 deletions.
-
+8
−0
src/app/qgsvectorlayerproperties.cpp
|
@@ -1822,4 +1822,12 @@ void QgsVectorLayerProperties::deleteAuxiliaryField( int index ) |
|
|
updateAuxiliaryStoragePage( true ); |
|
|
mSourceFieldsPropertiesDialog->init(); |
|
|
} |
|
|
else |
|
|
{ |
|
|
const QString title = QObject::tr( "Delete Auxiliary Field" ); |
|
|
const int timeout = QgisApp::instance()->messageTimeout(); |
|
|
const QString errors = mLayer->auxiliaryLayer()->commitErrors().join( QStringLiteral( "\n " ) ); |
|
|
const QString msg = QObject::tr( "Unable to remove auxiliary field (%1)" ).arg( errors ); |
|
|
QgisApp::instance()->messageBar()->pushMessage( title, msg, Qgis::Warning, timeout ); |
|
|
} |
|
|
} |