mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-25 23:51:33 +08:00
Properly evaluate pinnable flag
This commit is contained in:
parent
94b80423d7
commit
08714ddc3f
@ -493,10 +493,7 @@ void CDockAreaTitleBar::onCurrentTabChanged(int Index)
|
||||
//============================================================================
|
||||
void CDockAreaTitleBar::onAutoHideButtonClicked()
|
||||
{
|
||||
if (d->DockArea->features().testFlag(CDockWidget::DockWidgetPinnable))
|
||||
{
|
||||
d->DockArea->toggleAutoHideArea(!d->DockArea->isAutoHide());
|
||||
}
|
||||
d->DockArea->toggleAutoHideArea(!d->DockArea->isAutoHide());
|
||||
}
|
||||
|
||||
|
||||
|
@ -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())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user