mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-25 07:31:33 +08:00
while dockManager.removeDockWidget , the dockManager() returns null (#399)
This commit is contained in:
parent
3c4af9c6af
commit
d5fefaa35f
@ -893,7 +893,10 @@ void CDockWidget::setFloating()
|
|||||||
//============================================================================
|
//============================================================================
|
||||||
void CDockWidget::deleteDockWidget()
|
void CDockWidget::deleteDockWidget()
|
||||||
{
|
{
|
||||||
dockManager()->removeDockWidget(this);
|
auto manager=dockManager();
|
||||||
|
if(manager){
|
||||||
|
manager->removeDockWidget(this);
|
||||||
|
}
|
||||||
deleteLater();
|
deleteLater();
|
||||||
d->Closed = true;
|
d->Closed = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user