mobile: avoid warning in QML code
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
35ca8e4c66
commit
1f9fa8b462
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user