Skip to content

Commit 82c6281

Browse files
committed
Load default QGIS metadata for layers in browser layer metadata panel
1 parent dcca55c commit 82c6281

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/gui/qgsbrowserdockwidget_p.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ void QgsBrowserLayerProperties::setItem( QgsDataItem *item )
150150
{
151151
if ( layer->isValid() )
152152
{
153+
bool ok = false;
154+
layer->loadDefaultMetadata( ok );
153155
layerCrs = layer->crs();
154156
layerMetadata = layer->htmlMetadata();
155157
}
@@ -163,6 +165,8 @@ void QgsBrowserLayerProperties::setItem( QgsDataItem *item )
163165
{
164166
if ( layer->isValid() )
165167
{
168+
bool ok = false;
169+
layer->loadDefaultMetadata( ok );
166170
layerCrs = layer->crs();
167171
layerMetadata = layer->htmlMetadata();
168172
}
@@ -176,6 +180,8 @@ void QgsBrowserLayerProperties::setItem( QgsDataItem *item )
176180
{
177181
if ( layer->isValid() )
178182
{
183+
bool ok = false;
184+
layer->loadDefaultMetadata( ok );
179185
layerCrs = layer->crs();
180186
layerMetadata = layer->htmlMetadata();
181187
}

0 commit comments

Comments
 (0)