Skip to content

Commit

Permalink
fix for ticket #1617, wrong maps associated with combobox after updat…
Browse files Browse the repository at this point in the history
…e (added layer)

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@10812 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek committed May 18, 2009
1 parent 7c68a0a commit 87744cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/grass/qgsgrassmodule.cpp
Expand Up @@ -2317,7 +2317,7 @@ void QgsGrassModuleInput::updateQgisLayers()
+ " " + grassLayer + " " + type + " )";

mLayerComboBox->addItem( label );
if ( label == current ) mLayerComboBox->setItemText( mLayerComboBox->currentIndex(), current );
if ( label == current ) mLayerComboBox->setCurrentIndex ( mLayerComboBox->count()-1 );

mMapLayers.push_back( vector );
mVectorLayerNames.push_back( grassLayer );
Expand Down Expand Up @@ -2366,7 +2366,7 @@ void QgsGrassModuleInput::updateQgisLayers()
QString label = layer->name() + " ( " + map + "@" + mapset + " )";

mLayerComboBox->addItem( label );
if ( label == current ) mLayerComboBox->setItemText( mLayerComboBox->currentIndex(), current );
if ( label == current ) mLayerComboBox->setCurrentIndex ( mLayerComboBox->count()-1 );
}
}
}
Expand Down

0 comments on commit 87744cf

Please sign in to comment.