From b36d7076e4c6f566a296215816111cf4d71606a0 Mon Sep 17 00:00:00 2001 From: Axel Spoerl Date: Wed, 13 Jul 2022 11:05:43 +0200 Subject: Fix wrong debug output upon creation of floating dockwidget tabs When a floating dock is created, a qCDebug message is logged to indicate the hovered dock widget. By mistake, the target pointer to the floating tab is dumped, which is nullptr at that moment. This patch corrects the debugging output. Pick-to: 6.4 6.3 6.2 Change-Id: I317f057ef4b2d8fe508be687152bcede61c22f46 Reviewed-by: Volker Hilsheimer --- src/widgets/widgets/qmainwindowlayout.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/widgets/widgets/qmainwindowlayout.cpp') diff --git a/src/widgets/widgets/qmainwindowlayout.cpp b/src/widgets/widgets/qmainwindowlayout.cpp index 4a199e0b18..10732aecbe 100644 --- a/src/widgets/widgets/qmainwindowlayout.cpp +++ b/src/widgets/widgets/qmainwindowlayout.cpp @@ -2798,7 +2798,7 @@ void QMainWindowLayout::hover(QLayoutItem *hoverTarget, QDockAreaLayoutItem(parentLayout->takeAt(parentLayout->indexOf(dropTo)))); dropTo->setParent(floatingTabs); - qCDebug(lcQpaDockWidgets) << "Wrapping" << w << "into floating tabs" << floatingTabs; + qCDebug(lcQpaDockWidgets) << "Wrapping" << widget << "into floating tabs" << floatingTabs; w = floatingTabs; } -- cgit v1.2.3