mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
mobile: avoid warning in QML code
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
35ca8e4c66
commit
1f9fa8b462
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue