on xenial help sign in
Fixed the removal of messaging widget due to incompatible action state. Fixes: https://bugs.launchpad.net/bugs/1225017.

Approved by PS Jenkins bot, Gerry Boland.

commit6a74c576778ceafab7f1b3206af1ac702865a75e authorNick Dedekind <nicholas.dedekind@gmail.com> dateTue 17 Sep 2013, 00:39 (13 years ago) parente83ce7185967fc
1 file changed+1−5
Panel/Indicators/DefaultIndicatorWidget.qml+1−5
Panel/Indicators/DefaultIndicatorWidget.qml+1−5
@@ -24,6 +24,7 @@ import Unity.IndicatorsLegacy 0.1 as Indicators
2424Indicators.IndicatorWidget {
2525 id: indicatorWidget
2626
27+ enabled:true
2728 width: itemRow.width + units.gu(0.5)
2829
2930 property alias label: itemLabel.text
@@ -63,19 +64,14 @@ Indicators.IndicatorWidget {
6364
6465 onActionStateChanged: {
6566 if (action == undefined || !action.valid) {
66− enabled = false;
6767 return;
6868 }
6969
7070 if (action.state == undefined) {
71− label = "";
72− iconSource = "";
73− enabled = false;
7471 return;
7572 }
7673
7774 label = action.state[Indicators.ActionState.Label];
7875 iconSource = "image://theme/" + action.state[Indicators.ActionState.IconSource];
79− enabled = action.state[Indicators.ActionState.Visible];
8076 }
8177}