[ui] ImageGallery: fix the DB path in the "Edit Sensor Database" dialog

The output of "cameraInit.attribute("sensorDatabase").value" is the
unresolved ${ALICEVISION_SENSOR_DB} environment variable.

To get the path, the variable needs to be evaluated.
This commit is contained in:
Candice Bentéjac 2023-01-05 09:41:47 +01:00
parent 27ce3df5cb
commit 04bd976387

View file

@ -143,7 +143,7 @@ Panel {
SensorDBDialog {
id: sensorDBDialog
sensorDatabase: cameraInit ? Filepath.stringToUrl(cameraInit.attribute("sensorDatabase").value) : ""
sensorDatabase: cameraInit ? Filepath.stringToUrl(cameraInit.attribute("sensorDatabase").evalValue) : ""
readOnly: _reconstruction ? _reconstruction.computing : false
onUpdateIntrinsicsRequest: _reconstruction.rebuildIntrinsics(cameraInit)
}