Fix warning on ToolButton
If there's no parent for the ToolButton, always show all borders.
This commit is contained in:
parent
ab1ffcde8b
commit
1419eea367
@ -197,7 +197,7 @@ Item {
|
||||
id: surface
|
||||
|
||||
enabledBorders: {
|
||||
if (flat ||
|
||||
if (flat || !button.parent ||
|
||||
button.parent.width < button.parent.implicitWidth ||
|
||||
button.parent.checkedButton === undefined ||
|
||||
!bordersSvg.hasElement("pressed-hint-compose-over-border")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user