Skip to content

Commit

Permalink
fix #3591
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15458 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Mar 12, 2011
1 parent ca31b17 commit 8bfe746
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app/qgswmssourceselect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ bool QgsWMSSourceSelect::populateLayerList( QgsWmsProvider *wmsProvider )
{
QgsNumericSortTreeWidgetItem *lItem = createItem( layer->orderId, QStringList() << layer->name << layer->title << layer->abstract, items, layerAndStyleCount, layerParents, layerParentNames );

lItem->setData( 0, Qt::UserRole, layer->name );
lItem->setData( 0, Qt::UserRole + 0, layer->name );
lItem->setData( 0, Qt::UserRole + 1, "" );
lItem->setData( 0, Qt::UserRole + 2, layer->crs );

Expand Down Expand Up @@ -674,6 +674,8 @@ void QgsWMSSourceSelect::on_btnChangeSpatialRefSys_clicked()
enableLayersForCrs( lstLayers->topLevelItem( i ) );
}

updateButtons();

// update the display of this widget
update();
}
Expand Down Expand Up @@ -758,7 +760,7 @@ void QgsWMSSourceSelect::applySelectionConstraints( QTreeWidgetItem *item )
void QgsWMSSourceSelect::collectNamedLayers( QTreeWidgetItem *item, QStringList &layers, QStringList &styles )
{
QString layerName = item->data( 0, Qt::UserRole + 0 ).toString();
QString styleName = item->data( 1, Qt::UserRole + 0 ).toString();
QString styleName = item->data( 0, Qt::UserRole + 1 ).toString();
if ( layerName.isEmpty() )
{
// layer group
Expand Down

0 comments on commit 8bfe746

Please sign in to comment.