Fix crash with kxmlgui on qt6
This would save / restore applicationstate but kxmlgui already does that so we "fight" with the other code and create a mess.
This would save / restore applicationstate but kxmlgui already does that so we "fight" with the other code and create a mess.