Skip to content

Commit 8bfe746

Browse files
author
jef
committed
fix #3591
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15458 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent ca31b17 commit 8bfe746

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/app/qgswmssourceselect.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ bool QgsWMSSourceSelect::populateLayerList( QgsWmsProvider *wmsProvider )
337337
{
338338
QgsNumericSortTreeWidgetItem *lItem = createItem( layer->orderId, QStringList() << layer->name << layer->title << layer->abstract, items, layerAndStyleCount, layerParents, layerParentNames );
339339

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

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

677+
updateButtons();
678+
677679
// update the display of this widget
678680
update();
679681
}
@@ -758,7 +760,7 @@ void QgsWMSSourceSelect::applySelectionConstraints( QTreeWidgetItem *item )
758760
void QgsWMSSourceSelect::collectNamedLayers( QTreeWidgetItem *item, QStringList &layers, QStringList &styles )
759761
{
760762
QString layerName = item->data( 0, Qt::UserRole + 0 ).toString();
761-
QString styleName = item->data( 1, Qt::UserRole + 0 ).toString();
763+
QString styleName = item->data( 0, Qt::UserRole + 1 ).toString();
762764
if ( layerName.isEmpty() )
763765
{
764766
// layer group

0 commit comments

Comments
 (0)