Skip to content

Commit a17e394

Browse files
committed
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)
1 parent 8212cab commit a17e394

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/gui/attributetable/qgsdualview.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,6 @@ void QgsDualView::init( QgsVectorLayer *layer, QgsMapCanvas *mapCanvas, const Qg
110110

111111
// This slows down load of the attribute table heaps and uses loads of memory.
112112
//mTableView->resizeColumnsToContents();
113-
114-
mFeatureList->setEditSelection( QgsFeatureIds() << mFeatureListModel->idxToFid( mFeatureListModel->index( 0, 0 ) ) );
115113
}
116114

117115
void QgsDualView::columnBoxInit()

0 commit comments

Comments
 (0)