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()
299
299
else
300
300
{
301
301
CDockWidget* DockWidget = qobject_cast<CDockWidget*>(d->Content );
302
+ CDockAreaWidget* DockArea = qobject_cast<CDockAreaWidget*>(d->Content );
303
+
302
304
CFloatingDockContainer* FloatingWidget = nullptr ;
303
305
304
306
if (DockWidget && DockWidget->features ().testFlag (CDockWidget::DockWidgetFloatable))
305
307
{
306
308
FloatingWidget = new CFloatingDockContainer (DockWidget);
307
309
}
308
- else
310
+ else if (DockArea && DockArea-> features (). testFlag (CDockWidget::DockWidgetFloatable))
309
311
{
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);
315
313
}
316
314
317
315
if (FloatingWidget)
You can’t perform that action at this time.
0 commit comments