File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2317,7 +2317,7 @@ void QgsGrassModuleInput::updateQgisLayers()
23172317 + " " + grassLayer + " " + type + " )" ;
23182318
23192319 mLayerComboBox ->addItem ( label );
2320- if ( label == current ) mLayerComboBox ->setItemText ( mLayerComboBox ->currentIndex (), current );
2320+ if ( label == current ) mLayerComboBox ->setCurrentIndex ( mLayerComboBox ->count ()- 1 );
23212321
23222322 mMapLayers .push_back ( vector );
23232323 mVectorLayerNames .push_back ( grassLayer );
@@ -2366,7 +2366,7 @@ void QgsGrassModuleInput::updateQgisLayers()
23662366 QString label = layer->name () + " ( " + map + " @" + mapset + " )" ;
23672367
23682368 mLayerComboBox ->addItem ( label );
2369- if ( label == current ) mLayerComboBox ->setItemText ( mLayerComboBox ->currentIndex (), current );
2369+ if ( label == current ) mLayerComboBox ->setCurrentIndex ( mLayerComboBox ->count ()- 1 );
23702370 }
23712371 }
23722372}
You can’t perform that action at this time.
0 commit comments