Skip to content

Commit

Permalink
fixed a problem in attribute table: selection was not getting updated…
Browse files Browse the repository at this point in the history
… 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 committed May 13, 2009
1 parent ece7a72 commit a32cd60
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/app/attributetable/qgsattributetabledialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -220,6 +220,7 @@ void QgsAttributeTableDialog::on_cbxShowSelectedOnly_toggled( bool theFlag )
mFilterModel->invalidate();
//TODO: weird
//mModel->changeLayout();
updateSelection();
}

void QgsAttributeTableDialog::columnBoxInit()
Expand Down

0 comments on commit a32cd60

Please sign in to comment.