Skip to content

Commit 911dc45

Browse files
committed
errorMsg set and modified
1 parent 8aa13dc commit 911dc45

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

app/qml/components/MMPhoto.qml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ Image {
6868

6969
onStatusChanged: {
7070
if (status === Image.Error) {
71-
__notificationModel.addError( "Could not load the image. The file may not exist, could be invalid, or the URL might be incorrect: " + root.photoUrl );
7271
console.error("MMPhoto: Error loading image: " + root.photoUrl);
7372
}
7473
}

app/qml/form/editors/MMFormPhotoViewer.qml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ MMPrivateComponents.MMBaseInput {
7171
photoUrl: root.photoUrl
7272
fillMode: Image.PreserveAspectCrop
7373

74+
onStatusChanged: {
75+
if ( status === Image.Error ) {
76+
root.errorMsg = "Unable to load the image. It may be missing or invalid, the URL might be incorrect, or there may be no network connection: " + root.photoUrl;
77+
}
78+
}
79+
7480
MouseArea {
7581
anchors.fill: parent
7682
onClicked: {

0 commit comments

Comments
 (0)