diff --git a/src/widgets/widgets/qmainwindowlayout.cpp b/src/widgets/widgets/qmainwindowlayout.cpp index d15af3505b..d31fa3ddfa 100644 --- a/src/widgets/widgets/qmainwindowlayout.cpp +++ b/src/widgets/widgets/qmainwindowlayout.cpp @@ -2432,7 +2432,7 @@ QLayoutItem *QMainWindowLayout::unplug(QWidget *widget, bool group) } #endif -#if !QT_CONFIG(dockwidget) && !QT_CONFIG(tabbar) +#if !QT_CONFIG(dockwidget) || !QT_CONFIG(tabbar) Q_UNUSED(group); #endif