Skip to content

Commit b46fa98

Browse files
committed
Merge pull request #3624 from defmys/0.8.0
fix bug: renameKey, removeKey and setTTL only affects the 1st tab.
2 parents 5c5b924 + edfa496 commit b46fa98

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/resources/qml/ValueTabs.qml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ Repeater {
123123
return open()
124124
}
125125

126-
viewModel.renameKey(keyTab.keyIndex, newKeyName.text)
126+
viewModel.renameKey(keyTab.tabIndex, newKeyName.text)
127127
}
128128

129129
visible: false
@@ -149,7 +149,7 @@ Repeater {
149149
text: "Do you really want to delete this key?"
150150
onYes: {
151151
console.log("remove key")
152-
viewModel.removeKey(keyTab.keyIndex)
152+
viewModel.removeKey(keyTab.tabIndex)
153153
}
154154
visible: false
155155
modality: Qt.ApplicationModal
@@ -195,7 +195,7 @@ Repeater {
195195
return open()
196196
}
197197

198-
viewModel.setTTL(keyTab.keyIndex, newTTL.text)
198+
viewModel.setTTL(keyTab.tabIndex, newTTL.text)
199199
}
200200

201201
visible: false

0 commit comments

Comments
 (0)