Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash caused by dockContainerWidget not removing auto hide dock #477

Closed

Conversation

SyarifFakhri
Copy link

@SyarifFakhri SyarifFakhri commented Dec 8, 2022

Hi @githubuser0xFFFF, thanks for releasing the Auto hide feature :). This is a small fix for a crash that I found. Here's how to reproduce it:

  1. If you have two windows and the sub window has an auto hide widget:
    image

  2. If you press right click and then "detach" the auto hide container:
    image

  3. Then you delete the previous window:
    image

You'll get a crash. I believe this is being caused by the destructor of the AutoHideDockContainer not removing the correct registered auto hide widget from the correct container:

image

You can see that dockContainer() is getting the dockArea->dockContainer(), which has already been detached. It should try to remove only it's parent dockContainer():

image

@githubuser0xFFFF
Copy link
Owner

Thank you for your pull request. I added your change to the master branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants