Priority: Not Evaluated
Affects Version/s: Qt Creator 5.0.0
Component/s: All Other Issues
Environment:Linux Ubuntu 18.04, Qt Creator 5.0.0
This issue is about Qt Creator's Modes and adding/removing additional options to this sidebar using Qt Creators plugin framework.
Qt Creator documentation mentions "Modes automatically register themselves with Qt Creator when they are created and unregister themselves when they are destructed."
at https://doc.qt.io/qtcreator-extending/core-imode.html#details .
Previously when a IMode was deleted (C++ delete operator), it would not be removed in from the mode sidebar in UI till you switched modes (untracked bug, QtC 4.x).
However now, when a IMode is removed, the Mode button stays there forever. And when you click on it, a segmentation fault happens (due data deleted).
Then QtCreator completly crashes.
You can see the behaviour when running with gdb attached in the attached demo video.
The Update mode is added by the plugin, when delete is called the Update button in the mode sidebar is supposed to be gone.
Some example code:
--> Bugfix for delete to properly delete the mode and hide it from UI
--> Is there a method available to manually remove/delete a IMode? As far I discovered this is private implementation and not reachable by plugins.