fix(Chat): ensure image area is reset properly when removing images

We were only resetting the `Image` source but not the consumer facing `imageSource`
property when removing a selected image from the image area.

This cause the `imageSource` to practically never change after an image has
been selected the first time. Selecting an image another time would open the
image area, but if the image happens to be the same as the first time, the `imageSource`
practically didn't change, causing the app to render an "empty" image.
This commit is contained in:
Pascal Precht 2020-12-07 15:30:22 +01:00 committed by Iuri Matias
parent ae30d04010
commit c01300a3bb
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ Rectangle {
}
onClicked: {
imageArea.imageRemoved()
chatImage.source = ""
imageArea.imageSource = ""
}
MouseArea {
cursorShape: Qt.PointingHandCursor