Created attachment 9099 Patch preventing an invalid option to be added in 'labels to display' list Steps to Reproduce: 1) Open the Weather Update properties 2) Go to the 'Scrollbox' page 3) With no label selected in the drop-down list, click in the add button 4) As no label was selected from the drop-down list, an invalid label is added in the 'Labels to Display' list The present patch prevents adding a new label to the 'Labels to display' list if nothing was selected from the drop-down list.
Created attachment 9100 Screenshot of the bug
Otavio Napoli referenced this bugreport in commit 7336cb77b1587ce433c617f15063fae3188d2a72 Fix invalid scrollbar index to add a label (Bug #16023) https://git.xfce.org/panel-plugins/xfce4-weather-plugin/commit?id=7336cb77b1587ce433c617f15063fae3188d2a72
Thanks for the patch, I just made a small modification to it.