@@ -39,7 +39,13 @@ MenuItem {
39 // passed to QStateAction::updateState(…). The server chokes on
39 // passed to QStateAction::updateState(…). The server chokes on
40 // those values, complaining that they’re not of the right type…
40 // those values, complaining that they’re not of the right type…
41 minimumValue: menu.extra.canonical_min ? menu.extra.canonical_min * 1.000001 : 0.0000001
41 minimumValue: menu.extra.canonical_min ? menu.extra.canonical_min * 1.000001 : 0.0000001
42− maximumValue: menu.extra.canonical_max ? menu.extra.canonical_max * 1.000001 : 0.9999999
43+ var maximum = menu.extra.canonical_max ? menu.extra.canonical_max * 1.000001 : 0.9999999
44+ if (maximum <= minimumValue) {
45+ return minimumValue + 1;
44 // FIXME - to be deprecated in Ubuntu.Components.
50 // FIXME - to be deprecated in Ubuntu.Components.
45 // Use this to disable the label, since there is not way to do it on the component.
51 // Use this to disable the label, since there is not way to do it on the component.