Skip to content
Permalink
Browse files

fix for ticket #1617, wrong maps associated with combobox after updat…

…e (added layer)

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@10812 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek
rblazek committed May 18, 2009
1 parent 7c68a0a commit 87744cf11598f27afaa4dfcf156d3f36af779a29
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/plugins/grass/qgsgrassmodule.cpp
@@ -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 );
@@ -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 );
}
}
}

0 comments on commit 87744cf

Please sign in to comment.
You can’t perform that action at this time.