Skip to content
Permalink
Browse files

fixed a problem in attribute table: selection was not getting updated…

… correctly when showing only selected features.

Patch by Vita Cizek.


git-svn-id: http://svn.osgeo.org/qgis/trunk@10784 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder
wonder committed May 13, 2009
1 parent ece7a72 commit a32cd601d23412b2fc79f1a2d29b3a4f6eed4ca8
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/app/attributetable/qgsattributetabledialog.cpp
@@ -103,12 +103,12 @@ QgsAttributeTableDialog::QgsAttributeTableDialog( QgsVectorLayer *theLayer, QWid
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 @@ void QgsAttributeTableDialog::on_cbxShowSelectedOnly_toggled( bool theFlag )
mFilterModel->invalidate();
//TODO: weird
//mModel->changeLayout();
updateSelection();
}

void QgsAttributeTableDialog::columnBoxInit()

0 comments on commit a32cd60

Please sign in to comment.
You can’t perform that action at this time.