Fixed pin body widget hover bug

This commit is contained in:
Nav
2021-09-08 19:37:09 +01:00
parent 733cc60ddb
commit 08a5916e08

View File

@@ -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;