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()
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}
You can’t perform that action at this time.
0 commit comments