Skip to content

Commit

Permalink
Less debug noise
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Oct 27, 2017
1 parent 4c7eb83 commit c9ca175
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/core/qgsfeaturefiltermodel.cpp
Expand Up @@ -220,8 +220,6 @@ void QgsFeatureFilterModel::updateCompleter()

int firstRow = 0;

QgsDebugMsg( QStringLiteral( "Entries 1: %1 " ).arg( mEntries.size() ) );

// Move the extra entry to the first position
if ( mExtraIdentifierValueIndex != -1 )
{
Expand All @@ -239,26 +237,20 @@ void QgsFeatureFilterModel::updateCompleter()
firstRow = 1;
}

QgsDebugMsg( QStringLiteral( "Entries 2: %1 " ).arg( mEntries.size() ) );

// Remove all entries (except for extra entry if existent)
beginRemoveRows( QModelIndex(), firstRow, mEntries.size() - firstRow );
mEntries.remove( firstRow, mEntries.size() - firstRow );
endRemoveRows();

QgsDebugMsg( QStringLiteral( "Entries 3: %1 " ).arg( mEntries.size() ) );

if ( currentEntryInNewList == -1 )
{
QgsDebugMsg( QStringLiteral( "Current value is NOT in new list" ) );
beginInsertRows( QModelIndex(), 1, entries.size() + 1 );
mEntries += entries;
endInsertRows();
setExtraIdentifierValueIndex( 0 );
}
else
{
QgsDebugMsg( QStringLiteral( "Current value is in new list" ) );
if ( currentEntryInNewList != 0 )
{
beginInsertRows( QModelIndex(), 0, currentEntryInNewList - 1 );
Expand Down

0 comments on commit c9ca175

Please sign in to comment.