Skip to content

Commit b25fba7

Browse files
committed
Improve error message for camera selection failure
1 parent 6f9f708 commit b25fba7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

qml/content/CameraSource.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ Item
201201
}
202202
PropertyChanges {
203203
target: cameraSource
204-
lastError: qsTr("No camera found with the name: ") + cameraName
204+
lastError: cameraName.length !== 0 ? qsTr("No camera found with the name: ") + cameraName : qsTr("No camera selected.")
205205
}
206206
},
207207
State {

0 commit comments

Comments
 (0)