Skip to content

Commit b0ccafe

Browse files
committedMay 17, 2018
Add debug message
1 parent 91f32bf commit b0ccafe

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
 

‎src/gui/attributetable/qgsdualview.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ void QgsDualView::initModels( QgsMapCanvas *mapCanvas, const QgsFeatureRequest &
305305
connect( mFeatureList, &QgsFeatureListView::displayExpressionChanged, this, &QgsDualView::displayExpressionChanged );
306306

307307
mFeatureListModel = new QgsFeatureListModel( mFilterModel, mFilterModel );
308+
mFeatureListModel->setSortByDisplayExpression( true );
308309
}
309310

310311
void QgsDualView::restoreRecentDisplayExpressions()

‎src/gui/attributetable/qgsfeaturelistview.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,11 @@ void QgsFeatureListView::setEditSelection( const QModelIndex &index, QItemSelect
198198
bool ok = true;
199199
emit aboutToChangeEditSelection( ok );
200200

201+
#ifdef QGISDEBUG
202+
if ( index.model() != mModel->masterModel() )
203+
qWarning() << "Index from wrong model passed in";
204+
#endif
205+
201206
if ( ok )
202207
mCurrentEditSelectionModel->select( index, command );
203208
}

0 commit comments

Comments
 (0)
Please sign in to comment.