Skip to content

Commit bfc4e5a

Browse files
authored
fix signal when changing the plot idenx combobox (#301)
1 parent 9f62843 commit bfc4e5a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

DataPlotly/gui/plot_settings_widget.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,9 +391,18 @@ def data_defined_color_updated(self):
391391
"""
392392
refreshing function for color data defined button
393393
394+
sets the vector layer to the data defined buttons
395+
394396
checks is the datadefined button is active and check also the plot type
395397
in order to deactivate the color when not needed
396398
"""
399+
400+
# set the vector layer for all the data defined buttons
401+
layer = self.layer_combo.currentLayer()
402+
buttons = self.findChildren(QgsPropertyOverrideButton)
403+
for button in buttons:
404+
button.setVectorLayer(layer)
405+
397406
# if data defined button is active
398407
if self.in_color_defined_button.isActive():
399408
# if plot is type for which using an expression for the color selection makes sense

0 commit comments

Comments
 (0)