Skip to content
Permalink
Browse files

fix #3591

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15458 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Mar 12, 2011
1 parent ca31b17 commit 8bfe7464270b5c8a8e38ad871e3f6e9a23d3d8fb
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 8bfe746

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