Handle some nulls in qml

This commit is contained in:
Luis Ángel San Martín 2023-05-21 21:12:23 +02:00
parent 0dd167b9ca
commit f331b8c251
2 changed files with 2 additions and 3 deletions

View File

@ -499,8 +499,7 @@ SplitView {
font.pixelSize: 21
wrapMode: Text.WordWrap
text: currentComic.getTitleIncludingNumber()
}
text: currentComic ? currentComic.getTitleIncludingNumber() : "" }
Flow {
spacing: 0

View File

@ -503,7 +503,7 @@ SplitView {
font.pixelSize: 21
wrapMode: Text.WordWrap
text: currentComic.getTitleIncludingNumber()
text: currentComic?.getTitleIncludingNumber() ?? ""
}
Flow {