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