|
Bugzilla – Full Text Bug Listing |
| Summary: | Placing a menu item directly under a first-level category in K Menu breaks the menu structure | ||
|---|---|---|---|
| Product: | [openSUSE] SUSE Linux 10.1 | Reporter: | Forgotten User bwNirt9brK <forgotten_bwNirt9brK> |
| Component: | KDE | Assignee: | Stephan Binner <stbinner> |
| Status: | RESOLVED FIXED | QA Contact: | E-mail List <qa-bugs> |
| Severity: | Major | ||
| Priority: | P3 - Medium | CC: | suse-beta |
| Version: | Beta 4 | ||
| Target Milestone: | --- | ||
| Hardware: | i686 | ||
| OS: | All | ||
| Whiteboard: | |||
| Found By: | Other | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
| Attachments: |
An illustration of the bug
kdebase3 patch - short-menus.diff |
||
|
Description
Forgotten User bwNirt9brK
2006-02-16 13:52:22 UTC
Created attachment 68835 [details]
An illustration of the bug
no, this is most likely broken by a SUSE patch. But it's also very likely already fixed 3. is intentional, submenus with one item are replaced with that item 2. is a consequence of 1. and 3. 1. is caused by short-menus.diff, there are two "if ( KickerSettings::reduceMenuDepth()" places, one of them adds the item to slist instead of adding the group to glist, then SuSESortEntries() is called, which it seems to me may again add the group, so eventually the item is once added as an item originating from slist and once added by the second reduceMenuDepth if() originating from SuSESortEntries(). A simple fix is to comment out the slist adding of the item (then the item keeps the menu position of the group, not sure that's intended, but a better fix would be probably much more complicated, I don't understand this code much). Patch attached. Created attachment 69822 [details]
kdebase3 patch - short-menus.diff
Added the patch - for now, will see if there is a better fix possible. Revoked the pending submission of patch #14 - it lets the collapsed menu items disappear from the menu entirely!? Breaks not only sorting and duplicates items but also breaks search. Submitted better fix as partly discussed with Lubos. |