From ddbd843d917d6681c000c4eb71fb82564e00c124 Mon Sep 17 00:00:00 2001 From: fieldOfView Date: Fri, 28 Feb 2020 22:31:34 +0100 Subject: [PATCH] Fix showing tooltips for actionbuttons that have a tooltip text set --- resources/qml/ActionButton.qml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/resources/qml/ActionButton.qml b/resources/qml/ActionButton.qml index bb1abcf57e..04b57fc9d9 100644 --- a/resources/qml/ActionButton.qml +++ b/resources/qml/ActionButton.qml @@ -133,7 +133,18 @@ Button Cura.ToolTip { id: tooltip - visible: button.hovered && buttonTextMetrics.elidedText != buttonText.text + visible: + { + if (!button.hovered) + { + return false; + } + if (tooltipText == button.text) + { + return buttonTextMetrics.elidedText != buttonText.text; + } + return true; + } } BusyIndicator