fix(StatusImageCrop): output an error if trying to set cropRect without image
This commit is contained in:
parent
31fbc47053
commit
a54a999f4c
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue