[Panoram Viewer] Avoid problems with null state for image container

This commit is contained in:
Landrodie 2021-06-22 15:22:18 +02:00 committed by Fabien Castan
parent 73999c43e4
commit cfd03bb2c9

View file

@ -1059,7 +1059,7 @@ FocusScope {
// running property binding seems broken, only dynamic binding assignment works
Component.onCompleted: {
running = Qt.binding(function() {
return (root.usePanoramaViewer === true && imgContainer.image.allImagesLoaded === false)
return (root.usePanoramaViewer === true && imgContainer.image && imgContainer.image.allImagesLoaded === false)
|| (imgContainer.image && imgContainer.image.status === Image.Loading)
})
}