@@ -549,6 +549,15 @@ bool CAutoHideDockContainer::eventFilter(QObject* watched, QEvent* event)
549
549
return Super::eventFilter (watched, event);
550
550
}
551
551
552
+ // Now check, if the user clicked into the side tab and ignore this event,
553
+ // because the side tab click handler will call collapseView(). If we
554
+ // do not ignore this here, then we will collapse the container and the side tab
555
+ // click handler will uncollapse it
556
+ if (widget == d->SideTab .data ())
557
+ {
558
+ return Super::eventFilter (watched, event);
559
+ }
560
+
552
561
// Now we check, if the user clicked inside of this auto hide container.
553
562
// If the click is inside of this auto hide container, then we can
554
563
// ignore the event, because the auto hide overlay should not get collapsed if
@@ -558,15 +567,6 @@ bool CAutoHideDockContainer::eventFilter(QObject* watched, QEvent* event)
558
567
return Super::eventFilter (watched, event);
559
568
}
560
569
561
- // Now check, if the user clicked into the side tab and ignore this event,
562
- // because the side tab click handler will call collapseView(). If we
563
- // do not ignore this here, then we will collapse the container and the side tab
564
- // click handler will uncollapse it
565
- if (isObjectOrAncestor (widget, d->SideTab .data ()))
566
- {
567
- return Super::eventFilter (watched, event);
568
- }
569
-
570
570
// Ignore the mouse click if it is not inside of this container
571
571
if (!isObjectOrAncestor (widget, dockContainer ()))
572
572
{
0 commit comments