Skip to content

Commit

Permalink
Fixed #581 - FocusHighlighting is broken after detaching a dock widget
Browse files Browse the repository at this point in the history
  • Loading branch information
githubuser0xFFFF committed Nov 24, 2023
1 parent 59b4dfb commit 761bfc5
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/DockWidgetTab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -421,11 +421,12 @@ void CDockWidgetTab::mouseReleaseEvent(QMouseEvent* ev)
break;

default:
if (CDockManager::testConfigFlag(CDockManager::FocusHighlighting))
{
d->focusController()->setDockWidgetTabPressed(false);
}
break; // do nothing
break;
}

if (CDockManager::testConfigFlag(CDockManager::FocusHighlighting))
{
d->focusController()->setDockWidgetTabPressed(false);
}
}
else if (ev->button() == Qt::MiddleButton)
Expand Down

0 comments on commit 761bfc5

Please sign in to comment.