[QGIS Commit] r10784 - trunk/qgis/src/app/attributetable
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Wed May 13 09:04:28 EDT 2009
Author: wonder
Date: 2009-05-13 09:04:27 -0400 (Wed, 13 May 2009)
New Revision: 10784
Modified:
trunk/qgis/src/app/attributetable/qgsattributetabledialog.cpp
Log:
fixed a problem in attribute table: selection was not getting updated correctly when showing only selected features.
Patch by Vita Cizek.
Modified: trunk/qgis/src/app/attributetable/qgsattributetabledialog.cpp
===================================================================
--- trunk/qgis/src/app/attributetable/qgsattributetabledialog.cpp 2009-05-13 12:37:39 UTC (rev 10783)
+++ trunk/qgis/src/app/attributetable/qgsattributetabledialog.cpp 2009-05-13 13:04:27 UTC (rev 10784)
@@ -103,12 +103,12 @@
connect( mView->verticalHeader(), SIGNAL( sectionClicked( int ) ), this, SLOT( updateRowSelection( int ) ) );
connect( mModel, SIGNAL( modelChanged() ), this, SLOT( updateSelection() ) );
- //make sure to show all recs on first load
- on_cbxShowSelectedOnly_toggled( false );
-
mLastClickedHeaderIndex = 0;
mSelectionModel = new QItemSelectionModel( mFilterModel );
updateSelectionFromLayer();
+
+ //make sure to show all recs on first load
+ on_cbxShowSelectedOnly_toggled( false );
}
QgsAttributeTableDialog::~QgsAttributeTableDialog()
@@ -220,6 +220,7 @@
mFilterModel->invalidate();
//TODO: weird
//mModel->changeLayout();
+ updateSelection();
}
void QgsAttributeTableDialog::columnBoxInit()
More information about the QGIS-commit
mailing list