Skip to content

Commit

Permalink
Load default QGIS metadata for layers in browser layer metadata panel
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 2, 2018
1 parent dcca55c commit 82c6281
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/gui/qgsbrowserdockwidget_p.cpp
Expand Up @@ -150,6 +150,8 @@ void QgsBrowserLayerProperties::setItem( QgsDataItem *item )
{
if ( layer->isValid() )
{
bool ok = false;
layer->loadDefaultMetadata( ok );
layerCrs = layer->crs();
layerMetadata = layer->htmlMetadata();
}
Expand All @@ -163,6 +165,8 @@ void QgsBrowserLayerProperties::setItem( QgsDataItem *item )
{
if ( layer->isValid() )
{
bool ok = false;
layer->loadDefaultMetadata( ok );
layerCrs = layer->crs();
layerMetadata = layer->htmlMetadata();
}
Expand All @@ -176,6 +180,8 @@ void QgsBrowserLayerProperties::setItem( QgsDataItem *item )
{
if ( layer->isValid() )
{
bool ok = false;
layer->loadDefaultMetadata( ok );
layerCrs = layer->crs();
layerMetadata = layer->htmlMetadata();
}
Expand Down

0 comments on commit 82c6281

Please sign in to comment.