Properly evaluate pinnable flag

This commit is contained in:
Uwe Kindler 2022-11-01 16:11:45 +01:00
parent 94b80423d7
commit 08714ddc3f
2 changed files with 3 additions and 5 deletions

View File

@ -492,12 +492,9 @@ void CDockAreaTitleBar::onCurrentTabChanged(int Index)
//============================================================================
void CDockAreaTitleBar::onAutoHideButtonClicked()
{
if (d->DockArea->features().testFlag(CDockWidget::DockWidgetPinnable))
{
d->DockArea->toggleAutoHideArea(!d->DockArea->isAutoHide());
}
}
//============================================================================

View File

@ -1176,7 +1176,8 @@ void CDockAreaWidget::toggleAutoHideArea(bool Enable)
const auto area = dockContainer()->calculateSideTabBarArea(this);
if (CDockManager::testAutoHideConfigFlag(CDockManager::AutoHideButtonTogglesArea))
if (CDockManager::testAutoHideConfigFlag(CDockManager::AutoHideButtonTogglesArea)
&& features().testFlag(CDockWidget::DockWidgetPinnable))
{
for (const auto DockWidget : openedDockWidgets())
{