From 08a5916e08d6622457219b655b0bd891b0321eb7 Mon Sep 17 00:00:00 2001 From: Nav Date: Wed, 8 Sep 2021 19:37:09 +0100 Subject: [PATCH] Fixed pin body widget hover bug --- .../Widgets/TargetWidgets/TargetPinBodyWidget.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/TargetPinBodyWidget.cpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/TargetPinBodyWidget.cpp index a8e35126..9e3e2103 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/TargetPinBodyWidget.cpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/TargetPinBodyWidget.cpp @@ -6,10 +6,7 @@ using namespace Bloom::Widgets::InsightTargetWidgets; using namespace Bloom::Targets; bool TargetPinBodyWidget::event(QEvent* event) { - if (this->isEnabled() - && this->pinState.has_value() - && this->pinState->ioDirection == TargetPinState::IoDirection::OUTPUT - ) { + if (this->pinState.has_value() && this->pinState->ioDirection == TargetPinState::IoDirection::OUTPUT) { switch (event->type()) { case QEvent::Enter: { this->hoverActive = true;