File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2317,7 +2317,7 @@ void QgsGrassModuleInput::updateQgisLayers()
2317
2317
+ " " + grassLayer + " " + type + " )" ;
2318
2318
2319
2319
mLayerComboBox ->addItem ( label );
2320
- if ( label == current ) mLayerComboBox ->setItemText ( mLayerComboBox ->currentIndex (), current );
2320
+ if ( label == current ) mLayerComboBox ->setCurrentIndex ( mLayerComboBox ->count ()- 1 );
2321
2321
2322
2322
mMapLayers .push_back ( vector );
2323
2323
mVectorLayerNames .push_back ( grassLayer );
@@ -2366,7 +2366,7 @@ void QgsGrassModuleInput::updateQgisLayers()
2366
2366
QString label = layer->name () + " ( " + map + " @" + mapset + " )" ;
2367
2367
2368
2368
mLayerComboBox ->addItem ( label );
2369
- if ( label == current ) mLayerComboBox ->setItemText ( mLayerComboBox ->currentIndex (), current );
2369
+ if ( label == current ) mLayerComboBox ->setCurrentIndex ( mLayerComboBox ->count ()- 1 );
2370
2370
}
2371
2371
}
2372
2372
}
You can’t perform that action at this time.
0 commit comments