File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 55
55
#include " qgshuesaturationfilter.h"
56
56
#include " qgshillshaderendererwidget.h"
57
57
#include " qgssettings.h"
58
+ #include " qgsmaplayerlegend.h"
58
59
59
60
#include < QDesktopServices>
60
61
#include < QTableWidgetItem>
@@ -1052,9 +1053,13 @@ void QgsRasterLayerProperties::apply()
1052
1053
mRasterLayer ->setCustomProperty ( " WMSPublishDataSourceUrl" , mPublishDataSourceUrlCheckBox ->isChecked () );
1053
1054
mRasterLayer ->setCustomProperty ( " WMSBackgroundLayer" , mBackgroundLayerCheckBox ->isChecked () );
1054
1055
1055
- // update symbology
1056
+
1057
+ // update symbology (this is now disconnected)
1056
1058
emit refreshLegend ( mRasterLayer ->id (), false );
1057
1059
1060
+ // Force a redraw of the legend
1061
+ mRasterLayer ->setLegend ( QgsMapLayerLegend::defaultRasterLegend ( mRasterLayer ) );
1062
+
1058
1063
// make sure the layer is redrawn
1059
1064
mRasterLayer ->triggerRepaint ();
1060
1065
You can’t perform that action at this time.
0 commit comments