Skip to content

Commit 59c3b86

Browse files
committedOct 30, 2017
Revert "Avoid recursion in feature filter model"
This reverts commit a3eadd3.
1 parent ec27839 commit 59c3b86

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎src/core/qgsfeaturefiltermodel.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,8 @@ void QgsFeatureFilterModel::setExtraIdentifierValueUnguarded( const QVariant &ex
379379
mEntries.prepend( Entry( QVariant( QVariant::Int ), QStringLiteral( "%1" ).arg( tr( "NULL" ) ) ) );
380380
else
381381
mEntries.prepend( Entry( extraIdentifierValue, QStringLiteral( "(%1)" ).arg( extraIdentifierValue.toString() ) ) );
382-
setExtraIdentifierValueIndex( 0 );
383382
endInsertRows();
383+
setExtraIdentifierValueIndex( 0 );
384384

385385
reloadCurrentFeature();
386386
}
@@ -447,11 +447,11 @@ QVariant QgsFeatureFilterModel::extraIdentifierValue() const
447447

448448
void QgsFeatureFilterModel::setExtraIdentifierValue( const QVariant &extraIdentifierValue )
449449
{
450-
if ( extraIdentifierValue == mExtraIdentifierValue && extraIdentifierValue.isNull() == mExtraIdentifierValue.isNull() && mExtraIdentifierValue.isValid() == extraIdentifierValue.isValid() )
450+
if ( extraIdentifierValue == mExtraIdentifierValue && extraIdentifierValue.isNull() == mExtraIdentifierValue.isNull() && mExtraIdentifierValue.isValid() )
451451
return;
452452

453-
mExtraIdentifierValue = extraIdentifierValue;
454453
setExtraIdentifierValueUnguarded( extraIdentifierValue );
455454

455+
mExtraIdentifierValue = extraIdentifierValue;
456456
emit extraIdentifierValueChanged();
457457
}

0 commit comments

Comments
 (0)
Please sign in to comment.