on xenial help sign in
don't have the activity indicator running if there's no scope
commitea9233ff1920b15cb817fb38a3812937ebbbcb82 authorAlbert Astals <albert.astals@canonical.com> dateMon 7 Oct 2013, 10:26 (13 years ago) parent4367272
1 file changed+2−2
Components/PageHeader.qml+2−2
Components/PageHeader.qml+2−2
@@ -206,13 +206,13 @@ Item {
206206 states: [
207207 State {
208208 name: "searching"
209− when: scope.searchInProgress && searchField.text !== ""
209+ when: scope && scope.searchInProgress && searchField.text !== ""
210210 PropertyChanges { target: searchIndicator; running: true; opacity: 1 }
211211 PropertyChanges { target: primaryImage; opacity: 0 }
212212 },
213213 State {
214214 name: "idle"
215− when: !scope.searchInProgress || searchField.text === ""
215+ when: !scope || !scope.searchInProgress || searchField.text === ""
216216 PropertyChanges { target: searchIndicator; opacity: 0 }
217217 PropertyChanges { target: primaryImage; opacity: 1 }
218218 }