Skip to content

Commit

Permalink
[ui] Viewer2D: minor warning fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiencastan committed Jan 27, 2020
1 parent 2ce673e commit f7e36ff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions meshroom/ui/qml/Viewer/Viewer2D.qml
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ FocusScope {
// show which depthmap node is active
Label {
id: depthMapNodeName
visible: imageType.type != "image"
text: _reconstruction.depthMap.label
visible: (_reconstruction.depthMap != undefined) && (imageType.type != "image")
text: (_reconstruction.depthMap != undefined ? _reconstruction.depthMap.label : "")
font.pointSize: 8

horizontalAlignment: TextInput.AlignLeft
Expand Down Expand Up @@ -264,6 +264,7 @@ FocusScope {
property string type: types[currentIndex]

model: types
enabled: _reconstruction.depthMap != undefined
}

MaterialToolButton {
Expand Down

0 comments on commit f7e36ff

Please sign in to comment.