Check for undefined and null values in QML

Conditional chaining is not available in Qt5.15, so this is uglier than it should be.
This commit is contained in:
Luis Ángel San Martín
2022-01-19 18:24:29 +01:00
parent 68dbd90413
commit 6892a28d0a
2 changed files with 52 additions and 52 deletions

View File

@ -637,8 +637,8 @@ Rectangle {
color: #FFCB00;
text-decoration:none;
}
</style></head><body>' + currentComicInfo.synopsis + '</body></html>'
visible: currentComicInfo.synopsis
</style></head><body>' + currentComicInfo.synopsis ?? "" + '</body></html>'
visible: currentComicInfo.synopsis ?? false
textFormat: Text.RichText
}
}