[Digikam-devel] [Bug 157636] New: Problem when creating album

Philippe Arnone Philippe at arnone.org
Sun Feb 10 22:10:13 GMT 2008


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=157636         
           Summary: Problem when creating album
           Product: digikam
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: digikam-devel kde org
        ReportedBy: Philippe arnone org


Version:            (using Devel)
Installed from:    Compiled sources
OS:                Linux

I just compiled the latest digikam 0.10 from svn. I have a clean environment (no existing Album root, no digikamrc file and no db file).
Digikam starts perfectly, but when I want to create an album, I get an unknown error. The error comes from AlbumManager::createPAlbum method (in file albummanager.cpp).

The error is located near line 1017:
if (::mkdir(QFile::encodeName(fileUrl.path()), 0777) != 0)

This line raise the error. (it returns ENOENT)

fileUrl.path() value is /Albums/<albumname> and so the directory can not be created.

I changed this line with 
if (::mkdir(QFile::encodeName(albumRootPath + fileUrl.path()), 0777) != 0)

and it seems to work (I only need to create the Albums directory under my root path. When I do that, the photo import works well (ie files are copied into the album directory on the disk) but I'm not able to see any photo. I do not know if this problem come from my modification.

Philippe



More information about the Digikam-devel mailing list