[Bug 227836] kde menu editor, move item doesn't work

Anne-Marie Mahfouf annma at kde.org
Sat Mar 20 13:56:41 GMT 2010


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





--- Comment #6 from Anne-Marie Mahfouf <annma kde org>  2010-03-20 14:56:39 ---
If someone has the source and can try the following patch: it fixes the
trailing / (so it fixes the moving of folders when there is not the same named
folder in the moved folder)

Index: menufile.cpp
===================================================================
--- menufile.cpp    (revision 1105524)
+++ menufile.cpp    (working copy)
@@ -408,14 +408,14 @@
       commonMenuName += '/' + oldMenuParts[i];
    }
    QString oldMenuName;
-   for(int j = i; j < oldMenuParts.count(); j++)
+   for(int j = i; j < oldMenuParts.count()-1; j++)
    {
       if (i != j)
          oldMenuName += '/';
       oldMenuName += oldMenuParts[j];
    }
    QString newMenuName;
-   for(int j = i; j < newMenuParts.count(); j++)
+   for(int j = i; j < newMenuParts.count()-1; j++)
    {
       if (i != j)
          newMenuName += '/';

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Unassigned-bugs mailing list