Skip to content
Permalink
Browse files

Fix warning when opening attribute table

When init()ing QgsDualView through the attribute table it is
usually done BEFORE the model has been populated, so this code
has no effect and throws a warning.

There's no feature regression by removing this - the first
entry is still selected by default (elsewhere)
  • Loading branch information
nyalldawson committed Mar 12, 2019
1 parent 838273a commit 20f43c4b396f0bfed049612c4d2400351212aa6a
Showing with 0 additions and 2 deletions.
  1. +0 −2 src/gui/attributetable/qgsdualview.cpp
@@ -110,8 +110,6 @@ void QgsDualView::init( QgsVectorLayer *layer, QgsMapCanvas *mapCanvas, const Qg

// This slows down load of the attribute table heaps and uses loads of memory.
//mTableView->resizeColumnsToContents();

mFeatureList->setEditSelection( QgsFeatureIds() << mFeatureListModel->idxToFid( mFeatureListModel->index( 0, 0 ) ) );
}

void QgsDualView::columnBoxInit()

0 comments on commit 20f43c4

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