[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
Arnd Baecker
arnd.baecker at web.de
Tue Apr 8 15:19:31 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 arnd.baecker web de 2008-04-08 16:19 -------
I got the culprit:
bool AlbumManager::renamePAlbum
Here
KURL u = KURL(album->folderPath()).upURL();
u.addPath(newName);
u.cleanPath();
is used.
This gives for a rename of /#AZZASortownia to AZZASortownia
for u.path(-1) as result /home/username/AZZASortownia.
I.e., for /home/username/Pictures/#AZZASortownia,
the #... is stripped, the upURL gives /home/username/
and therefore /home/username/AZZASortownia which is outside of digikams tree
... ;-).
So how to solve this? Could QDir and QDir::cdUp () be useful?
More information about the Digikam-devel
mailing list