Review Request 104212: Only show language context menu extensions if the menu is invoked in a context relevant to that language
Sven Brauch
svenbrauch at gmx.de
Mon Mar 11 13:52:35 UTC 2013
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/104212/
-----------------------------------------------------------
(Updated March 11, 2013, 1:52 p.m.)
Status
------
This change has been discarded.
Review request for KDevelop and Milian Wolff.
Description
-------
I tried to implement proper rename support for python, and during that task I noticed this behaviour: any loaded language plugin will add its context menu extensions to any context menu. The c++ plugin adds its rename dialog to php and python files. This patch fixes that behaviour by retrieving the URL of the file the action was invoked on, and then checks that the plugin -- if it is a language plugin -- fits that language.
Diffs
-----
shell/plugincontroller.cpp 23408a6
Diff: http://git.reviewboard.kde.org/r/104212/diff/
Testing
-------
The "rename" action no longer shows up in python, but seems to work as before in c++.
Thanks,
Sven Brauch
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20130311/a6340b43/attachment.html>
More information about the KDevelop-devel
mailing list