on xenial help sign in
Leave isCurrent alone for autopilot tests.
commitc65790414d4c6297ccf03822a32cc9207cdaa430 authorMichał Sawicz <michal.sawicz@canonical.com> dateTue 8 Oct 2013, 13:10 (13 years ago) parent35defb2
1 file changed+2−2
Dash/DashContent.qml+2−2
Dash/DashContent.qml+2−2
@@ -118,12 +118,12 @@ Item {
118118
119119 // these are needed for autopilot tests
120120 readonly property string scopeId: scope.id
121− readonly property bool isCurrent: visible && ListView.isCurrentItem
121+ readonly property bool isCurrent: ListView.isCurrentItem
122122 readonly property bool isLoaded: status == Loader.Ready
123123
124124 onLoaded: {
125125 item.scope = Qt.binding(function() { return scope })
126− item.isCurrent = Qt.binding(function() { return isCurrent })
126+ item.isCurrent = Qt.binding(function() { return visible && ListView.isCurrentItem })
127127 item.searchHistory = Qt.binding(function() { return shell.searchHistory })
128128 dashContentList.movementStarted.connect(item.movementStarted)
129129 dashContent.positionedAtBeginning.connect(item.positionedAtBeginning)