Let's assume that A-A, A-B and A-C all are the submenu of menu A in K Menu. If the menu editor is used to remove A-B and A-C so there remains only A-A as the submenu of A, then when you check K Menu, you will
see menu A's icon has been changed to A-A's, but the name is still A. When you click A from the K Menu, it will launch A-A application.
For example:
1. Select K Menu->Tools->Archiving, you will see 2 submenu items, File Roller
and Ark
2. Then remove File Roller from Archiving (leaving only Ark there) by using the KDE Menu Editor;, save the change.
3. Now check K Menu->Tools->Archiving again, you will see
- Archiving's icon changed to Ark's
- Archiving doesn't show Ark submenu item
- Click Archiving, it launchs Ark application
I am tring to debug this, but havn't looked at this code before. I see that the actual menu structer is stored in an XMLish file, and it has the correct structure, so the bug has to be in KMenu, not the editor.
So I am looking for the source to KMenu... can someone give me a pointer or two?
Thanks,