Navigation Menu

Skip to content

Commit

Permalink
Fix error reusing same var name in category menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Benoit HERVIER committed Jan 23, 2013
1 parent 61de5ea commit ed107c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions khtnotes/qml/components/ItemMenu.qml
Expand Up @@ -20,10 +20,10 @@ Menu {
onClicked: {
var categories = notesModel.getCategories().split("\n");
console.log(categories)
var index = 0;
var idx = 0;
categoryQueryDialog.model.clear();
for (;index < categories.length; index++) {
categoryQueryDialog.model.append({"name":categories[index]});
for (;idx < categories.length; idx++) {
categoryQueryDialog.model.append({"name":categories[idx]});
}
categoryQueryDialog.index = index;
categoryQueryDialog.open();
Expand Down

0 comments on commit ed107c8

Please sign in to comment.