Skip to content
Permalink
Browse files

no need to check for validity

  • Loading branch information
3nids committed Sep 24, 2020
1 parent 756b293 commit 72fa03704245b03065bd1a3c0fe80aa70373331e
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/core/qgsfeaturefiltermodel.cpp
  2. +1 −1 src/gui/editorwidgets/qgsrelationreferencewidget.cpp
@@ -96,7 +96,7 @@ bool QgsFeatureFilterModel::identifierIsNull( const QVariant &identifier ) const
const QVariantList values = identifier.toList();
for ( const QVariant &value : values )
{
if ( !value.isNull() && value.isValid() )
if ( !value.isNull() )
{
return false;
}
@@ -54,7 +54,7 @@ bool qVariantListIsNull( const QVariantList &list )

for ( int i = 0; i < list.size(); ++i )
{
if ( !list.at( i ).isNull() && list.at( i ).isValid() )
if ( !list.at( i ).isNull() )
return false;
}
return true;

0 comments on commit 72fa037

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