Skip to content

Commit

Permalink
Set wms groups always as identifiable
Browse files Browse the repository at this point in the history
  • Loading branch information
marco committed Aug 1, 2011
1 parent 016d3a2 commit 557a124
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mapserver/qgsprojectparser.cpp
Expand Up @@ -92,6 +92,7 @@ void QgsProjectParser::layersAndStylesCapabilities( QDomElement& parentElement,
//So we create an artificial one here to be in accordance with the schema
QString projTitle = projectTitle();
QDomElement layerParentElem = doc.createElement( "Layer" );
layerParentElem.setAttribute( "queryable", "1" );
QDomElement layerParentNameElem = doc.createElement( "Name" );
QDomText layerParentNameText = doc.createTextNode( projTitle );
layerParentNameElem.appendChild( layerParentNameText );
Expand Down Expand Up @@ -144,6 +145,7 @@ void QgsProjectParser::addLayers( QDomDocument &doc,

if ( currentChildElem.tagName() == "legendgroup" )
{
layerElem.setAttribute( "queryable", "1" );
QString name = currentChildElem.attribute( "name" );
QDomElement nameElem = doc.createElement( "Name" );
QDomText nameText = doc.createTextNode( name );
Expand Down

0 comments on commit 557a124

Please sign in to comment.