[LYN-3137] Fixed EMFX floating dock widgets not responding to docking events.

This commit is contained in:
Chris Galvan
2021-04-21 14:48:00 -05:00
parent 626f7c00fe
commit 5f8ffdfdc1
2 changed files with 7 additions and 3 deletions
@@ -2298,6 +2298,12 @@ namespace AzQtComponents
OptimizedSetParent(dock, mainWindow);
mainWindow->addDockWidget(Qt::LeftDockWidgetArea, dock);
dock->show();
// Make sure we listen for events on the dock widget being put into a floating dock window
// because this might be called programmatically, so the dock widget might have never been
// parented to our m_mainWindow initially, so it won't already have an event filter,
// which will prevent the docking functionality from working.
dock->installEventFilter(this);
}
}