Skip to content

Commit

Permalink
Disable next button when no match is found
Browse files Browse the repository at this point in the history
  • Loading branch information
Top-Ranger committed Apr 5, 2017
1 parent f97dd30 commit 2d59c68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qml/pages/Add.qml
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ Page {
height: best_match_label.height
icon.source: "image://theme/icon-m-forward"
visible: best_match_result_label.text != ""
enabled: listModel.count !== 1
enabled: listModel.count !== 1 && listModel.count !== 0
onClicked: {
listModel.showItemNo = (listModel.showItemNo + 1) % listModel.count
}
Expand Down

0 comments on commit 2d59c68

Please sign in to comment.