Skip to content

Commit

Permalink
while dockManager.removeDockWidget , the dockManager() returns null (g…
Browse files Browse the repository at this point in the history
  • Loading branch information
kangzhanlei authored Feb 18, 2022
1 parent b80059f commit 87713e7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/DockWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,10 @@ void CDockWidget::setFloating()
//============================================================================
void CDockWidget::deleteDockWidget()
{
dockManager()->removeDockWidget(this);
auto manager=dockManager();
if(manager){
manager->removeDockWidget(this);
}
deleteLater();
d->Closed = true;
}
Expand Down

0 comments on commit 87713e7

Please sign in to comment.