@@ -72,7 +72,7 @@ LocalComponents.Page {
72 id: accessPointComponent
72 id: accessPointComponent
73 ListItem {
73 ListItem {
74 id: accessPoint
74 id: accessPoint
75− objectName: "accessPoint"
75+ objectName: getObjectName()
76 highlightColor: backgroundColor
76 highlightColor: backgroundColor
77 enabled: menuData && menuData.sensitive || false
77 enabled: menuData && menuData.sensitive || false
78 divider.colorFrom: dividerColor
78 divider.colorFrom: dividerColor
@@ -93,6 +93,10 @@ LocalComponents.Page {
93 readonly property int signalStrength: strengthAction.valid ? strengthAction.state : 0
93 readonly property int signalStrength: strengthAction.valid ? strengthAction.state : 0
94 property int menuIndex: -1
94 property int menuIndex: -1
96+ function getObjectName() {
97+ "accessPoint_" + apName.text.toLowerCase().replace(/\s+/g, '_')
96 function loadAttributes() {
100 function loadAttributes() {
97 if (!unityMenuModel || menuIndex == -1) return;
101 if (!unityMenuModel || menuIndex == -1) return;
98 unityMenuModel.loadExtendedAttributes(menuIndex, {'x-canonical-wifi-ap-is-adhoc': 'bool',
102 unityMenuModel.loadExtendedAttributes(menuIndex, {'x-canonical-wifi-ap-is-adhoc': 'bool',
@@ -166,6 +170,7 @@ LocalComponents.Page {
167 ListView {
171 ListView {
168 id: listview
172 id: listview
173+ objectName: "accessPointsListView"
169 anchors.left: parent.left
174 anchors.left: parent.left
170 anchors.right: parent.right
175 anchors.right: parent.right
171 clip: true
176 clip: true