mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-23 12:59:44 +00:00
fix(StatusImageCrop): output an error if trying to set cropRect without image
This commit is contained in:
parent
31fbc47053
commit
a54a999f4c
3
.gitignore
vendored
3
.gitignore
vendored
@ -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…
x
Reference in New Issue
Block a user