File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -299,19 +299,17 @@ void CFloatingDragPreview::finishDragging()
299299 else
300300 {
301301 CDockWidget* DockWidget = qobject_cast<CDockWidget*>(d->Content );
302+ CDockAreaWidget* DockArea = qobject_cast<CDockAreaWidget*>(d->Content );
303+
302304 CFloatingDockContainer* FloatingWidget = nullptr ;
303305
304306 if (DockWidget && DockWidget->features ().testFlag (CDockWidget::DockWidgetFloatable))
305307 {
306308 FloatingWidget = new CFloatingDockContainer (DockWidget);
307309 }
308- else
310+ else if (DockArea && DockArea-> features (). testFlag (CDockWidget::DockWidgetFloatable))
309311 {
310- CDockAreaWidget* DockArea = qobject_cast<CDockAreaWidget*>(d->Content );
311- if (DockArea->features ().testFlag (CDockWidget::DockWidgetFloatable))
312- {
313- FloatingWidget = new CFloatingDockContainer (DockArea);
314- }
312+ FloatingWidget = new CFloatingDockContainer (DockArea);
315313 }
316314
317315 if (FloatingWidget)
You can’t perform that action at this time.
0 commit comments