mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-25 07:31:33 +08:00
Fix crash when adding closed dock widgets to the manager. (#366)
Co-authored-by: Rodrigo Oliva <Rodrigo.Oliva@king.com>
This commit is contained in:
parent
de05ddd203
commit
31e26c2c1c
@ -597,7 +597,8 @@ void CDockWidget::toggleViewInternal(bool Open)
|
|||||||
CDockWidget* TopLevelDockWidgetAfter = DockContainer
|
CDockWidget* TopLevelDockWidgetAfter = DockContainer
|
||||||
? DockContainer->topLevelDockWidget() : nullptr;
|
? DockContainer->topLevelDockWidget() : nullptr;
|
||||||
CDockWidget::emitTopLevelEventForWidget(TopLevelDockWidgetAfter, true);
|
CDockWidget::emitTopLevelEventForWidget(TopLevelDockWidgetAfter, true);
|
||||||
CFloatingDockContainer* FloatingContainer = DockContainer->floatingWidget();
|
CFloatingDockContainer* FloatingContainer = DockContainer
|
||||||
|
? DockContainer->floatingWidget() : nullptr;
|
||||||
if (FloatingContainer)
|
if (FloatingContainer)
|
||||||
{
|
{
|
||||||
FloatingContainer->updateWindowTitle();
|
FloatingContainer->updateWindowTitle();
|
||||||
|
Loading…
Reference in New Issue
Block a user