Skip to content
Permalink
Browse files

Less debug noise

  • Loading branch information
m-kuhn committed Oct 27, 2017
1 parent 4c7eb83 commit c9ca17560b7f9d232d13912e0e9de4aa88c7101a
Showing with 0 additions and 8 deletions.
  1. +0 −8 src/core/qgsfeaturefiltermodel.cpp
@@ -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 )
{
@@ -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 );

0 comments on commit c9ca175

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