Skip to content

Commit e15d412

Browse files
committed
Fix regression in Value Editor
1 parent 6d60644 commit e15d412

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/modules/value-editor/largetextmodel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ void ValueEditor::LargeTextWrappingModel::setText(const QString &text)
4747

4848
void ValueEditor::LargeTextWrappingModel::cleanUp()
4949
{
50-
emit beginRemoveRows(QModelIndex(), 0, rowCount());
50+
emit beginRemoveRows(QModelIndex(), 0, rowCount() - 1);
5151
m_textRows.clear();
5252
emit endRemoveRows();
5353
}

src/qml/value-editor/ValueTabs.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Repeater {
4343
property var valueEditor
4444
property var searchModel
4545

46-
property variant keyModel: keyName ? valuesModel.getValue(keyIndex) : null
46+
property variant keyModel: keyName ? valuesModel.value(keyIndex) : null
4747

4848
onKeyModelChanged: {
4949
// On tab reload

0 commit comments

Comments
 (0)