Missing actions in the Menu

Ivan Shapovalov intelfx100 at gmail.com
Sun Nov 4 12:50:37 UTC 2012


On 31 Oct 2012 21:55:02 Andreas Pakulat wrote:
> Hi,
> 
> On Wed, Oct 31, 2012 at 7:37 PM, Milian Wolff <mail at milianw.de> wrote:
> > On Wednesday 31 October 2012 18:15:17 Andreas Pakulat wrote:
> >> Hi,
> >> 
> >> I just started a fresh kdevelop instance and noticed that various
> >> things are missing from my Project menu, all the actions supplied by
> >> the projectcontroller.cpp are not visible. Since this seems to be a
> >> local problem (olijg said they're there for him) I'm wondering wether
> >> anybody has an idea what this might be.
> >> 
> >> I've already checked the code (no local modifications or unpushed
> >> commits) and the ui.rc files for kdevelop (they contain the actions in
> >> both install folder and HOME/.kde). Where was the code again that
> >> re-arranged the standard xmlgui-structure to what we want it to look
> >> like? Since these actions are supplied by code in shell// a non-loaded
> >> plugin is also out of the question.
> > 
> > Try to remove your *ui.rc files in $KDEHOME/share/apps, i.e. something
> > like
> > 
> > find $KDEHOME/share/apps -path "*kdev*" -name "*.ui.rc" [-delete]
> 
> Thats what I mean with having checked the $HOME/.kde/ sutff rc-files,
> the kdevelopui.rc has project_open under the Project menu.
> 
> I actually just built kdevelop/master on another machine and have the
> exact same effect there.
> 
> Andreas

Finally I've got them too. The problematic commit seems to be 
580d74a641471204203a40368c299a779da7c7c9 "Refactor TestProjectController and 
TestProject to be closer to reality.".

In this commit, the ProjectController's initialization code (specifically, a 
call to setupActions()) has been moved from the ctor to 
ProjectController::initialize() method.
Since core initializes ui controller before project controller, the actions 
added by the latter are left invisible.


- Ivan




More information about the KDevelop-devel mailing list