From 0c9a1ee3f247b25f237869670afab6b5abfacb08 Mon Sep 17 00:00:00 2001 From: Uwe Kindler Date: Mon, 4 May 2020 15:14:35 +0200 Subject: [PATCH] Fixed a bug in FloatingDragPreview that prevents dock widget from floating when dragging over another dock widget --- src/FloatingDragPreview.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/FloatingDragPreview.cpp b/src/FloatingDragPreview.cpp index f0f6ac8..3d3cc10 100644 --- a/src/FloatingDragPreview.cpp +++ b/src/FloatingDragPreview.cpp @@ -349,6 +349,10 @@ void CFloatingDragPreview::finishDragging() d->DropContainer->dropWidget(d->Content, ContainerDropArea, nullptr); } } + else + { + d->createFloatingWidget(); + } this->close(); d->DockManager->containerOverlay()->hideOverlay();