Skip to content

Commit

Permalink
Fix crash when adding closed dock widgets to the manager. (#366)
Browse files Browse the repository at this point in the history
Co-authored-by: Rodrigo Oliva <Rodrigo.Oliva@king.com>
  • Loading branch information
rolivav and Rodrigo Oliva authored Oct 20, 2021
1 parent de05ddd commit 31e26c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/DockWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,8 @@ void CDockWidget::toggleViewInternal(bool Open)
CDockWidget* TopLevelDockWidgetAfter = DockContainer
? DockContainer->topLevelDockWidget() : nullptr;
CDockWidget::emitTopLevelEventForWidget(TopLevelDockWidgetAfter, true);
CFloatingDockContainer* FloatingContainer = DockContainer->floatingWidget();
CFloatingDockContainer* FloatingContainer = DockContainer
? DockContainer->floatingWidget() : nullptr;
if (FloatingContainer)
{
FloatingContainer->updateWindowTitle();
Expand Down

0 comments on commit 31e26c2

Please sign in to comment.