Fix warning on ToolButton

If there's no parent for the ToolButton, always show all borders.
This commit is contained in:
Aleix Pol 2014-05-29 18:39:31 +02:00
parent ab1ffcde8b
commit 1419eea367

View File

@ -197,7 +197,7 @@ Item {
id: surface id: surface
enabledBorders: { enabledBorders: {
if (flat || if (flat || !button.parent ||
button.parent.width < button.parent.implicitWidth || button.parent.width < button.parent.implicitWidth ||
button.parent.checkedButton === undefined || button.parent.checkedButton === undefined ||
!bordersSvg.hasElement("pressed-hint-compose-over-border")) { !bordersSvg.hasElement("pressed-hint-compose-over-border")) {