Version: 1.0.0-beta5 (using KDE 4.3.1) OS: Linux Installed from: Debian testing/unstable Packages Assume I have a network collection under /mnt/shares/pics. Then adding /mnt/shared/pics-new is rejected with the message "There is already a collection for a network share with the same path" although the new share is a sibling, not a child. On the other hand, adding /mnt/shares is not detected as being a parent to /mnt/shared/pics Current codes checks if the path for a new collection is contained in the path to existing collections. Attached patch uses KUrl::parentOf instead, and checks relations in both directions (new.parentOf(old) and old.parentOf(new)).
Created attachment 37232 [details] Patch against r1028026, use KUrl::parentOf
Marcel, Patch is simple and sound fine for me... Your viewpoint ? No problem here for you ? Gilles
Fine for me
SVN commit 1029537 by mghansen: Improve checks for existing collections when adding new ones. BUG: 208851 M +2 -1 NEWS M +10 -3 libs/database/collectionmanager.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1029537