diff --git a/src/gui/attributetable/qgsfeaturelistview.cpp b/src/gui/attributetable/qgsfeaturelistview.cpp index b5030df1888..de96e0a7a17 100644 --- a/src/gui/attributetable/qgsfeaturelistview.cpp +++ b/src/gui/attributetable/qgsfeaturelistview.cpp @@ -205,10 +205,7 @@ 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 + Q_ASSERT( index.model() == mModel->masterModel() || !index.isValid() ); if ( ok ) mCurrentEditSelectionModel->select( index, command );