https://bugs.kde.org/show_bug.cgi?id=401138

            Bug ID: 401138
           Summary: KDevelop showing duplicate contextmenu items
           Product: kdevelop
           Version: unspecified
          Platform: Compiled Sources
                OS: All
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: UI: IDEAl
          Assignee: kdevelop-bugs-n...@kde.org
          Reporter: rjvber...@gmail.com
  Target Milestone: ---

SUMMARY
Document context menu actions are added multiple times after
https://phabricator.kde.org/R39:3f0c617e22ab5d2ae016ef7858c6f451f9cf0ad0

STEPS TO REPRODUCE
1. install KTextEditor from git/master
2. Open a KDevelop session that has multiple documents open
3. Open a context menu; notice how the actions below the Bookmarks submenu are
shown once only

OBSERVED RESULT
4. Switch to another document, open the context menu, notice how these actions
now show up twice
5. Switch to a third document, open the context menu, notice how the number of
duplications increased.

ADDITIONAL INFORMATION
This is no longer dependent on having the Kate CTags plugin loaded as in my
earlier reports. Instead, it is due (I think) to a design flaw in KDevelop: the
QMenu added to the context menu should not be private to individual views but
instead be shared among them. That is the only way the added menu actions can
be removed (before adding a refreshed list of actions) when the menu is about
to be reopened in another view.

Proposed fix: https://phabricator.kde.org/D16882

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to