[QGIS Commit] r11930 - trunk/qgis/src/app/attributetable
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Fri Nov 6 05:55:35 EST 2009
Author: mhugent
Date: 2009-11-06 05:55:35 -0500 (Fri, 06 Nov 2009)
New Revision: 11930
Modified:
trunk/qgis/src/app/attributetable/qgsattributetabledialog.cpp
Log:
Fix for attribute table not updating when using the add / remove buttons
Modified: trunk/qgis/src/app/attributetable/qgsattributetabledialog.cpp
===================================================================
--- trunk/qgis/src/app/attributetable/qgsattributetabledialog.cpp 2009-11-06 10:53:30 UTC (rev 11929)
+++ trunk/qgis/src/app/attributetable/qgsattributetabledialog.cpp 2009-11-06 10:55:35 UTC (rev 11930)
@@ -588,6 +588,8 @@
QMessageBox::critical( 0, tr( "Attribute Error" ), tr( "The attribute could not be added to the layer" ) );
mLayer->destroyEditCommand();
}
+ // update model - a field has been added or updated
+ mModel->reload( mModel->index( 0, 0 ), mModel->index( mModel->rowCount(), mModel->columnCount() ) );
}
}
@@ -627,6 +629,8 @@
QMessageBox::critical( 0, tr( "Attribute Error" ), tr( "The attribute(s) could not be deleted" ) );
mLayer->destroyEditCommand();
}
+ // update model - a field has been added or updated
+ mModel->reload( mModel->index( 0, 0 ), mModel->index( mModel->rowCount(), mModel->columnCount() ) );
}
}
More information about the QGIS-commit
mailing list