mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-12 00:02:25 -04:00
Force legend update when raster properties changes
Fixes #18608 - Layer tree embedded widgets do not show up unless you move layer
This commit is contained in:
parent
81db0052ff
commit
56149ff39a
@ -55,6 +55,7 @@
|
||||
#include "qgshuesaturationfilter.h"
|
||||
#include "qgshillshaderendererwidget.h"
|
||||
#include "qgssettings.h"
|
||||
#include "qgsmaplayerlegend.h"
|
||||
|
||||
#include <QDesktopServices>
|
||||
#include <QTableWidgetItem>
|
||||
@ -1052,9 +1053,13 @@ void QgsRasterLayerProperties::apply()
|
||||
mRasterLayer->setCustomProperty( "WMSPublishDataSourceUrl", mPublishDataSourceUrlCheckBox->isChecked() );
|
||||
mRasterLayer->setCustomProperty( "WMSBackgroundLayer", mBackgroundLayerCheckBox->isChecked() );
|
||||
|
||||
// update symbology
|
||||
|
||||
// update symbology (this is now disconnected)
|
||||
emit refreshLegend( mRasterLayer->id(), false );
|
||||
|
||||
// Force a redraw of the legend
|
||||
mRasterLayer->setLegend( QgsMapLayerLegend::defaultRasterLegend( mRasterLayer ) );
|
||||
|
||||
//make sure the layer is redrawn
|
||||
mRasterLayer->triggerRepaint();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user