mobile: avoid warning in QML code

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2020-11-24 15:55:24 -08:00
parent 35ca8e4c66
commit 1f9fa8b462

View file

@ -27,7 +27,8 @@ Kirigami.Page {
function resetState() {
// make sure we have the right width and reset focus / state if there aren't any unsaved changes
width = parent.width
if (parent)
width = parent.width
if (tripLocation === tripLocationField.text && tripNotes === tripNotesField.text) {
tripLocationField.focus = false
tripNotesField.focus = false