while dockManager.removeDockWidget , the dockManager() returns null (#399)

This commit is contained in:
kzl 2022-02-19 02:33:55 +08:00 committed by GitHub
parent 3c4af9c6af
commit d5fefaa35f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}