git-svn-id: http://svn.osgeo.org/qgis/trunk@11083 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
rugginoso 2009-07-15 11:09:38 +00:00
parent 97526615ba
commit 68f9378886

View File

@ -834,7 +834,7 @@ void QgsGrassMapcalc::updateMaps()
QgsDebugMsg( "entered." );
QString current = mMapComboBox->currentText();
mMapComboBox->clear();
mMaps.resize( 0 );
mMaps.clear();
QgsMapCanvas *canvas = mIface->mapCanvas();
@ -882,7 +882,7 @@ void QgsGrassMapcalc::updateMaps()
//if ( mUpdate && mapset != QgsGrass::getDefaultMapset() ) continue;
mMapComboBox->addItem( layer->name() );
if ( layer->name() == current ) mMapComboBox->setItemText( mMapComboBox->currentIndex(), current );
//if ( layer->name() == current ) mMapComboBox->setItemText( mMapComboBox->currentIndex(), current );
mMaps.push_back( map + "@" + mapset );
}
}