Skip to content

Commit

Permalink
Fix warning when opening attribute table
Browse files Browse the repository at this point in the history
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 ed9fa62 commit d8ec96f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/gui/attributetable/qgsdualview.cpp
Expand Up @@ -109,8 +109,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()
Expand Down

0 comments on commit d8ec96f

Please sign in to comment.