Handle no icon in modal dialogs

This commit is contained in:
David Rowe 2016-03-08 13:52:24 +13:00
parent ba1e8db34a
commit d893b2e3b1

View file

@ -47,12 +47,12 @@ Frame {
}
Item {
width: title.width + (window.iconText !== "" ? icon.width + hifi.dimensions.contentSpacing.x : 0)
width: title.width + (icon.text !== "" ? icon.width + hifi.dimensions.contentSpacing.x : 0)
x: (parent.width - width) / 2
FontAwesome {
id: icon
text: window.iconText
text: window.iconText ? window.iconText : ""
size: 30
color: hifi.colors.lightGrayText
visible: text != ""