fix(StatusImageCrop): output an error if trying to set cropRect without image

This commit is contained in:
Stefan 2022-05-03 14:18:55 +02:00 committed by Stefan Dunca
parent 31fbc47053
commit a54a999f4c
2 changed files with 5 additions and 2 deletions

3
.gitignore vendored
View File

@ -54,6 +54,9 @@ _deps
# QtCreator shadow builds
build-*/
# CMake builds
build/
# https://github.com/github/gitignore/blob/master/C%2B%2B.gitignore
# Prerequisites
*.d

View File

@ -205,9 +205,9 @@ Item {
enabled: bannerCropper.sourceSize.width > 0 && bannerCropper.sourceSize.height > 0
onClicked: {
bannerCropperModal.close()
bannerPreview.setCropRect(bannerCropper.cropRect)
bannerPreview.source = bannerCropper.source
bannerPreview.setCropRect(bannerCropper.cropRect)
bannerCropperModal.close()
root.userSelectedImage = true
}
}