Skip to content

Commit

Permalink
Fix relation reference widget model out of sync
Browse files Browse the repository at this point in the history
Causes crashes in some situations
  • Loading branch information
m-kuhn committed Nov 2, 2017
1 parent c336fee commit 1fd4b63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsfeaturefiltermodel.cpp
Expand Up @@ -254,7 +254,7 @@ void QgsFeatureFilterModel::updateCompleter()
if ( currentEntryInNewList != 0 )
{
beginInsertRows( QModelIndex(), 0, currentEntryInNewList - 1 );
mEntries = entries.mid( 0, currentEntryInNewList );
mEntries = entries.mid( 0, currentEntryInNewList ) + mEntries;
endInsertRows();
}
else
Expand Down

0 comments on commit 1fd4b63

Please sign in to comment.