Skip to content

Commit 44f7d41

Browse files
author
rugginoso
committed
Fix for #1779.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11083 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent bd6aa70 commit 44f7d41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plugins/grass/qgsgrassmapcalc.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ void QgsGrassMapcalc::updateMaps()
834834
QgsDebugMsg( "entered." );
835835
QString current = mMapComboBox->currentText();
836836
mMapComboBox->clear();
837-
mMaps.resize( 0 );
837+
mMaps.clear();
838838

839839
QgsMapCanvas *canvas = mIface->mapCanvas();
840840

@@ -882,7 +882,7 @@ void QgsGrassMapcalc::updateMaps()
882882
//if ( mUpdate && mapset != QgsGrass::getDefaultMapset() ) continue;
883883

884884
mMapComboBox->addItem( layer->name() );
885-
if ( layer->name() == current ) mMapComboBox->setItemText( mMapComboBox->currentIndex(), current );
885+
//if ( layer->name() == current ) mMapComboBox->setItemText( mMapComboBox->currentIndex(), current );
886886
mMaps.push_back( map + "@" + mapset );
887887
}
888888
}

0 commit comments

Comments
 (0)