You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@ChangLi27 noticed that when loading a project, for every plugin in the workspace their fromVariantMap() function is called twice.
We traced it back to a bug in the ViewPluginDockWidget.cpp
The last constructor is called, which in turn calls the first constructor via the ViewPluginDockWidget() in the initializer list. Both of these constructors add the widget to the active list, which is processed later when loading the workspace and calls fromVariantMap() on each of them.
The issue was fixed by removing the active << this; in the first constructor, but probably this is not the best solution.
The text was updated successfully, but these errors were encountered:
@ChangLi27 noticed that when loading a project, for every plugin in the workspace their fromVariantMap() function is called twice.
We traced it back to a bug in the ViewPluginDockWidget.cpp
![image](https://private-user-images.githubusercontent.com/2978176/311750121-857c94f7-87dc-4c6d-ac35-047f916be73f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE2OTk3ODIsIm5iZiI6MTcyMTY5OTQ4MiwicGF0aCI6Ii8yOTc4MTc2LzMxMTc1MDEyMS04NTdjOTRmNy04N2RjLTRjNmQtYWMzNS0wNDdmOTE2YmU3M2YucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcyMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MjNUMDE1MTIyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NmUwYThhNDg1ODE2NTU0ZjNlOWEyNjdiNmVmNjMzMjdiMTUwZWU0YWUzYmM0NjllOTdmOTYwNDJlMDZkMTVlMiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.hA6YsC10TFTmxU2wUiPbaJVASUdjmdb2ueb_o1ECZZo)
The last constructor is called, which in turn calls the first constructor via the
ViewPluginDockWidget()
in the initializer list. Both of these constructors add the widget to theactive
list, which is processed later when loading the workspace and calls fromVariantMap() on each of them.The issue was fixed by removing the
active << this;
in the first constructor, but probably this is not the best solution.The text was updated successfully, but these errors were encountered: