@@ -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