-
Notifications
You must be signed in to change notification settings - Fork 543
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
Crash on add a previously removed dock widget #212
Comments
Fixed this in branch issue212. Please checkout the branch and test. |
Hello ! |
Done. Please test. |
Sorry again but I have still a crash, this time it's on I don't what is the problem exactly, I have this callstack:
I just test it in the sample example with this:
|
Fixed. Please test. |
Ok that's good to me ;) Thank you a lot ! |
Merged into master. |
When we remove a dock widget:
dockManager1->removeDockWidget(dockWidget);
and then add it to another manager:
dockManager2->addDockWidget(ads::RightDockWidgetArea, dockWidget);
A crash appends.
After searching for the problem, it seems in
CDockAreaWidget* CDockContainerWidget::addDockWidget(DockWidgetArea area, CDockWidget* Dockwidget, CDockAreaWidget* DockAreaWidget)
at this lineCDockAreaWidget* OldDockArea = Dockwidget->dockAreaWidget();
-> OldDockArea is still valid.There is still a link to an old area from the dock widget but this area has been delete previously during the remove from the first dock manager.
The text was updated successfully, but these errors were encountered: