File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -834,7 +834,7 @@ void QgsGrassMapcalc::updateMaps()
834
834
QgsDebugMsg ( " entered." );
835
835
QString current = mMapComboBox ->currentText ();
836
836
mMapComboBox ->clear ();
837
- mMaps .resize ( 0 );
837
+ mMaps .clear ( );
838
838
839
839
QgsMapCanvas *canvas = mIface ->mapCanvas ();
840
840
@@ -882,7 +882,7 @@ void QgsGrassMapcalc::updateMaps()
882
882
// if ( mUpdate && mapset != QgsGrass::getDefaultMapset() ) continue;
883
883
884
884
mMapComboBox ->addItem ( layer->name () );
885
- if ( layer->name () == current ) mMapComboBox ->setItemText ( mMapComboBox ->currentIndex (), current );
885
+ // if ( layer->name() == current ) mMapComboBox->setItemText( mMapComboBox->currentIndex(), current );
886
886
mMaps .push_back ( map + " @" + mapset );
887
887
}
888
888
}
You can’t perform that action at this time.
0 commit comments