Skip to content

Commit 1e3af06

Browse files
Fixed notifyFloatingWidgetDrop() function
1 parent 5af7492 commit 1e3af06

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/DockFocusController.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,8 @@ void CDockFocusController::onFocusWindowChanged(QWindow *focusWindow)
251251
//===========================================================================
252252
void CDockFocusController::onApplicationFocusChanged(QWidget* focusedOld, QWidget* focusedNow)
253253
{
254+
Q_UNUSED(focusedOld);
255+
254256
if (d->DockManager->isRestoringState())
255257
{
256258
return;
@@ -372,13 +374,6 @@ void CDockFocusController::notifyFloatingWidgetDrop(CFloatingDockContainer* Floa
372374
auto DockWidget = vDockWidget.value<CDockWidget*>();
373375
if (DockWidget)
374376
{
375-
/*auto Window = DockWidget->dockContainer()->window()->windowHandle();
376-
DockWidget->dockContainer()->window()->clearFocus();
377-
if (Window)
378-
{
379-
Window->setProperty("FocusedDockWidget", QVariant::fromValue<CDockWidget*>(DockWidget));
380-
}*/
381-
d->FocusedDockWidget = nullptr;
382377
DockWidget->dockAreaWidget()->setCurrentDockWidget(DockWidget);
383378
CDockManager::setWidgetFocus(DockWidget);
384379
}

0 commit comments

Comments
 (0)