on xenial help sign in
as review
commitf860d9e4d8fc012eb88ae5320f5f26104503b9c8 authorAndrea Cimitan <andrea.cimitan@gmail.com> dateWed 6 Apr 2016, 17:19 (11 years ago) parent6aaf871
1 file changed+4−6
qml/Dash/CardTool.qml+4−6
qml/Dash/CardTool.qml+4−6
@@ -185,15 +185,13 @@ Item {
185185 Item {
186186 id: socialActionsModel
187187 property var model: []
188− readonly property bool hasActions: {
189− var actions = components["social-actions"];
190− var hasActionsFlag = (actions != undefined);
188+ readonly property bool hasActions: components["social-actions"] != undefined
191189
190+ onHasActionsChanged: {
192191 model = []
193− if (hasActionsFlag) {
194− model.push( {"id":"text", "icon":"image://theme/ok" } );
192+ if (hasActions) {
193+ model.push( {"id":"text", "icon":"image://theme/ok" } );
195194 }
196− return hasActionsFlag
197195 }
198196 }
199197