Skip to content
Permalink
Browse files

fix #3591

git-svn-id: http://svn.osgeo.org/qgis/trunk@15458 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Mar 12, 2011
1 parent a41769f commit 8c4ab1cae57f0a1054cc5834e1d212f634c930cc
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/app/qgswmssourceselect.cpp
@@ -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 );

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

updateButtons();

// update the display of this widget
update();
}
@@ -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

0 comments on commit 8c4ab1c

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