Skip to content
Permalink
Browse files

Add debug message

  • Loading branch information
m-kuhn committed May 15, 2018
1 parent 91f32bf commit b0ccafe0d83d66f289f4f56d050a043f15c2830b
Showing with 6 additions and 0 deletions.
  1. +1 −0 src/gui/attributetable/qgsdualview.cpp
  2. +5 −0 src/gui/attributetable/qgsfeaturelistview.cpp
@@ -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()
@@ -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 );
}

0 comments on commit b0ccafe

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