diff --git a/src/decorationbutton.cpp b/src/decorationbutton.cpp --- a/src/decorationbutton.cpp +++ b/src/decorationbutton.cpp @@ -339,7 +339,7 @@ this, static_cast(&DecorationButton::update)); auto updateSlot = static_cast(&DecorationButton::update); connect(this, &DecorationButton::hoveredChanged, this, updateSlot); - connect(this, &DecorationButton::hoveredChanged, this, + connect(this, &DecorationButton::hoveredChanged, decoration.data(), [this](bool hovered) { if (hovered) { //TODO: show tooltip if hovered and hide if not