fix(StatusSeedPhraseInput): don't access input control via `root`

This commit is contained in:
Pascal Precht 2022-04-07 14:32:07 +02:00 committed by Michał Cieślak
parent 708d844c2b
commit 10ccfef8de
1 changed files with 2 additions and 2 deletions

View File

@ -174,8 +174,8 @@ Item {
cursorShape: Qt.PointingHandCursor cursorShape: Qt.PointingHandCursor
hoverEnabled: true hoverEnabled: true
onClicked: { onClicked: {
root.seedWordInput.input.edit.text = seedWord.trim(); seedWordInput.input.edit.text = seedWord.trim();
root.seedWordInput.input.edit.cursorPosition = seedWordInput.text.length; seedWordInput.input.edit.cursorPosition = seedWordInput.text.length;
root.doneInsertingWord(seedWordInput.text); root.doneInsertingWord(seedWordInput.text);
seedSuggestionsList.model = 0; seedSuggestionsList.model = 0;
} }