Skip to content
Permalink
Browse files

fix #4812

  • Loading branch information
jef-n committed Jan 14, 2012
1 parent 8930633 commit 10dbb6a623b7e304b93671763f83067d9efd1650
Showing with 5 additions and 2 deletions.
  1. +2 −2 src/gui/attributetable/qgsattributetablemodel.cpp
  2. +3 −0 src/ui/qgsoptionsbase.ui
@@ -64,9 +64,9 @@ bool QgsAttributeTableModel::featureAtId( QgsFeatureId fid ) const
else if ( mLayer->featureAtId( fid, mFeat, false, true ) )
{
QSettings settings;
int cacheSize = settings.value( "/qgis/attributeTableRowCache", "10000" ).toInt();
int cacheSize = qMax( 1, settings.value( "/qgis/attributeTableRowCache", "10000" ).toInt() );

if ( mFeatureQueue.size() == cacheSize )
while ( mFeatureQueue.size() >= cacheSize )
{
mFeatureMap.remove( mFeatureQueue.dequeue() );
}
@@ -464,6 +464,9 @@
</item>
<item>
<widget class="QSpinBox" name="spinBoxAttrTableRowCache">
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>100000</number>
</property>

0 comments on commit 10dbb6a

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