mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Fix for #1779.
git-svn-id: http://svn.osgeo.org/qgis/trunk@11083 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
97526615ba
commit
68f9378886
@ -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 );
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user