mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
Mobile: don't dereference the dive list model when it's disconnected
This avoids a bunch of annoying warnings. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
9f34f4f97d
commit
f1e7adfedc
1 changed files with 2 additions and 2 deletions
|
@ -361,7 +361,7 @@ Kirigami.ScrollablePage {
|
||||||
}
|
}
|
||||||
Controls.Label {
|
Controls.Label {
|
||||||
text: {
|
text: {
|
||||||
diveListView.model.tripShortDate(section)
|
diveListView.model ? diveListView.model.tripShortDate(section) : "no data model"
|
||||||
}
|
}
|
||||||
color: subsurfaceTheme.primaryTextColor
|
color: subsurfaceTheme.primaryTextColor
|
||||||
font.pointSize: subsurfaceTheme.smallPointSize
|
font.pointSize: subsurfaceTheme.smallPointSize
|
||||||
|
@ -386,7 +386,7 @@ Kirigami.ScrollablePage {
|
||||||
Controls.Label {
|
Controls.Label {
|
||||||
id: sectionText
|
id: sectionText
|
||||||
text: {
|
text: {
|
||||||
diveListView.model.tripTitle(section)
|
diveListView.model ? diveListView.model.tripTitle(section) : "no data model"
|
||||||
}
|
}
|
||||||
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
|
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
|
||||||
visible: text !== ""
|
visible: text !== ""
|
||||||
|
|
Loading…
Add table
Reference in a new issue