Fixed a bug in FloatingDragPreview that prevents dock widget from floating when dragging over another dock widget

This commit is contained in:
Uwe Kindler 2020-05-04 15:14:35 +02:00
parent 3adabaec81
commit 0c9a1ee3f2

View File

@ -349,6 +349,10 @@ void CFloatingDragPreview::finishDragging()
d->DropContainer->dropWidget(d->Content, ContainerDropArea, nullptr); d->DropContainer->dropWidget(d->Content, ContainerDropArea, nullptr);
} }
} }
else
{
d->createFloatingWidget();
}
this->close(); this->close();
d->DockManager->containerOverlay()->hideOverlay(); d->DockManager->containerOverlay()->hideOverlay();