[Digikam-devel] [Bug 160323] Changing the album name from sth to #sth and then to zsth causes the album to be deleted along with the files
Gilles Caulier
caulier.gilles at gmail.com
Wed Apr 9 12:11:06 BST 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=160323
------- Additional Comments From caulier.gilles gmail com 2008-04-09 13:11 -------
Arnd,
Tested here. All work fine now. Thanks.
Note KDE4 no need to be fixed. Code is different now and i cannot reproduce the bug:
...
QString oldAlbumPath = album->albumPath();
KUrl u = album->fileUrl();
u = u.upUrl();
u.addPath(newName);
if (::rename(QFile::encodeName(album->folderPath()),
QFile::encodeName(u.path(KUrl::RemoveTrailingSlash))) != 0)
...
Like you can see, the album path can be get using fileUrl() witch provide directly KUrl container from DB witch take a care about his problem.
Marcel, can you confirm than KDE4 is never affected ?
Gilles Caulier
More information about the Digikam-devel
mailing list