[Digikam-devel] [Bug 208851] New: Collections: Detection of duplicate collections too strict [patch]

Michael G. Hansen mike at mghansen.de
Tue Sep 29 09:14:14 BST 2009


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

           Summary: Collections: Detection of duplicate collections too
                    strict [patch]
           Product: digikam
           Version: 1.0.0-beta5
          Platform: Debian testing
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: digikam-devel at kde.org
        ReportedBy: mike at mghansen.de


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)).

-- 
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 Digikam-devel mailing list