Skip to content

Commit

Permalink
fix bug: renameKey, removeKey and setTTL only affects the 1st tab.
Browse files Browse the repository at this point in the history
If multiple tabs are activated on the right pannel, the renameKey,
removeKey and setTTL only affects the key of the 1st tab.
  • Loading branch information
defmys committed May 31, 2016
1 parent fb81c3d commit edfa496
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/resources/qml/ValueTabs.qml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ Repeater {
return open()
}

viewModel.renameKey(keyTab.keyIndex, newKeyName.text)
viewModel.renameKey(keyTab.tabIndex, newKeyName.text)
}

visible: false
Expand All @@ -149,7 +149,7 @@ Repeater {
text: "Do you really want to delete this key?"
onYes: {
console.log("remove key")
viewModel.removeKey(keyTab.keyIndex)
viewModel.removeKey(keyTab.tabIndex)
}
visible: false
modality: Qt.ApplicationModal
Expand Down Expand Up @@ -195,7 +195,7 @@ Repeater {
return open()
}

viewModel.setTTL(keyTab.keyIndex, newTTL.text)
viewModel.setTTL(keyTab.tabIndex, newTTL.text)
}

visible: false
Expand Down

0 comments on commit edfa496

Please sign in to comment.