The combobox on a statistics page wasn't set to the correct index when the last shown variant of that page wasn't the first one in the list of combobox items.
Steps to reproduce:
1) Open the statistics widget and choose a variant which isn't the first one in the combobox list.
2) Close and reopen the statistics widget.
Expected result: The chart and combobox text will show the variant that was displayed before the widget was closed.
Actual behaviour: The correct chart is shown, but the combobox shows the text for the first item in the list.
The combobox on a statistics page wasn't set to the correct index when the last shown variant of that page wasn't the first one in the list of combobox items.
Steps to reproduce: 1) Open the statistics widget and choose a variant which isn't the first one in the combobox list. 2) Close and reopen the statistics widget.
Expected result: The chart and combobox text will show the variant that was displayed before the widget was closed.
Actual behaviour: The correct chart is shown, but the combobox shows the text for the first item in the list.