Skip to content

Commit

Permalink
Add debug message
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed May 17, 2018
1 parent 91f32bf commit b0ccafe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/attributetable/qgsdualview.cpp
Expand Up @@ -305,6 +305,7 @@ void QgsDualView::initModels( QgsMapCanvas *mapCanvas, const QgsFeatureRequest &
connect( mFeatureList, &QgsFeatureListView::displayExpressionChanged, this, &QgsDualView::displayExpressionChanged );

mFeatureListModel = new QgsFeatureListModel( mFilterModel, mFilterModel );
mFeatureListModel->setSortByDisplayExpression( true );
}

void QgsDualView::restoreRecentDisplayExpressions()
Expand Down
5 changes: 5 additions & 0 deletions src/gui/attributetable/qgsfeaturelistview.cpp
Expand Up @@ -198,6 +198,11 @@ void QgsFeatureListView::setEditSelection( const QModelIndex &index, QItemSelect
bool ok = true;
emit aboutToChangeEditSelection( ok );

#ifdef QGISDEBUG
if ( index.model() != mModel->masterModel() )
qWarning() << "Index from wrong model passed in";
#endif

if ( ok )
mCurrentEditSelectionModel->select( index, command );
}
Expand Down

0 comments on commit b0ccafe

Please sign in to comment.