From 6a797d673639641f6bf33c9d3b54f373a8348862 Mon Sep 17 00:00:00 2001 From: Denis Rouzaud Date: Tue, 15 Oct 2019 15:31:40 +0200 Subject: [PATCH] commenting noisy warnings (#32238) * commenting noisy warnings These are annoying and prevent from correctly testing QGIS nightlies. Will be reverted when #32176 is merged --- src/gui/attributetable/qgsfeaturelistview.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 );