mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-11-15 13:15:43 +08:00
Fixed crash by access to invalid dock parent container in CAutoHideDockContainer::updateSize() function
This commit is contained in:
parent
983afc4d1e
commit
7d79ea2770
@ -223,6 +223,11 @@ CAutoHideDockContainer::CAutoHideDockContainer(CDockWidget* DockWidget, SideBarL
|
||||
void CAutoHideDockContainer::updateSize()
|
||||
{
|
||||
auto dockContainerParent = parentContainer();
|
||||
if (!dockContainerParent)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
auto rect = dockContainerParent->contentRect();
|
||||
|
||||
switch (sideBarLocation())
|
||||
|
Loading…
Reference in New Issue
Block a user