mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Handle undefined values
This commit is contained in:
parent
1744002658
commit
a003ee40f6
@ -337,7 +337,7 @@ Rectangle {
|
|||||||
|
|
||||||
text: qsTr("Main character or team")
|
text: qsTr("Main character or team")
|
||||||
|
|
||||||
visible: comicInfo ? comicInfo.mainCharacterOrTeam.length > 0 : false
|
visible: comicInfo && comicInfo.mainCharacterOrTeam ? comicInfo.mainCharacterOrTeam.length > 0 : false
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
@ -345,9 +345,9 @@ Rectangle {
|
|||||||
font.family: "Arial"
|
font.family: "Arial"
|
||||||
font.pixelSize: 15
|
font.pixelSize: 15
|
||||||
|
|
||||||
text: comicInfo ? comicInfo.mainCharacterOrTeam : ""
|
text: comicInfo && comicInfo.mainCharacterOrTeam ? comicInfo.mainCharacterOrTeam : ""
|
||||||
|
|
||||||
visible: comicInfo ? comicInfo.mainCharacterOrTeam.length > 0 : false
|
visible: comicInfo && comicInfo.mainCharacterOrTeam ? comicInfo.mainCharacterOrTeam.length > 0 : false
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
@ -691,9 +691,9 @@ Rectangle {
|
|||||||
font.family: "Arial"
|
font.family: "Arial"
|
||||||
font.pixelSize: 15
|
font.pixelSize: 15
|
||||||
|
|
||||||
text: comicInfo ? comicInfo.languageISO : ""
|
text: comicInfo && comicInfo.languageISO ? comicInfo.languageISO : ""
|
||||||
|
|
||||||
visible: comicInfo ? comicInfo.languageISO.length > 0 : false
|
visible: comicInfo && comicInfo.languageISO ? comicInfo.languageISO.length > 0 ?? false : false
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
|
Loading…
Reference in New Issue
Block a user