Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
remove return and add else clause
- Loading branch information
Showing
with
8 additions
and
7 deletions.
-
+8
−7
src/app/qgsattributetabledialog.cpp
|
@@ -508,15 +508,16 @@ void QgsAttributeTableDialog::runFieldCalculation( QgsVectorLayer* layer, const |
|
|
{ |
|
|
QMessageBox::critical( nullptr, tr( "Error" ), tr( "An error occurred while evaluating the calculation string:\n%1" ).arg( error ) ); |
|
|
mLayer->destroyEditCommand(); |
|
|
return; |
|
|
} |
|
|
else |
|
|
{ |
|
|
mLayer->endEditCommand(); |
|
|
|
|
|
mLayer->endEditCommand(); |
|
|
|
|
|
// refresh table with updated values |
|
|
// fixes https://issues.qgis.org/issues/17312 |
|
|
QgsAttributeTableModel* masterModel = mMainView->masterModel(); |
|
|
masterModel->reload( masterModel->index( 0, 0 ), masterModel->index( masterModel->rowCount() - 1, masterModel->columnCount() - 1 ) ); |
|
|
// refresh table with updated values |
|
|
// fixes https://issues.qgis.org/issues/17312 |
|
|
QgsAttributeTableModel* masterModel = mMainView->masterModel(); |
|
|
masterModel->reload( masterModel->index( 0, 0 ), masterModel->index( masterModel->rowCount() - 1, masterModel->columnCount() - 1 ) ); |
|
|
} |
|
|
} |
|
|
|
|
|
void QgsAttributeTableDialog::replaceSearchWidget( QWidget* oldw, QWidget* neww ) |
|
|