aboutsummaryrefslogtreecommitdiff
path: root/components/InlineButton.qml
diff options
context:
space:
mode:
Diffstat (limited to 'components/InlineButton.qml')
-rw-r--r--components/InlineButton.qml5
1 files changed, 4 insertions, 1 deletions
diff --git a/components/InlineButton.qml b/components/InlineButton.qml
index 8e0d278b..09d3aadf 100644
--- a/components/InlineButton.qml
+++ b/components/InlineButton.qml
@@ -95,7 +95,10 @@ Item {
cursorShape: rect.enabled ? Qt.PointingHandCursor : Qt.ArrowCursor
hoverEnabled: true
anchors.fill: parent
- onClicked: doClick()
+ onClicked: {
+ tooltip.text ? tooltip.tooltipPopup.close() : ""
+ doClick()
+ }
onEntered: {
tooltip.text ? tooltip.tooltipPopup.open() : ""
rect.color = buttonColor ? buttonColor : "#707070";