Bug 365596

Summary: Deleting Albums and renaming not possible
Product: [Applications] digikam Reporter: Stefan Schuster <kde.bugtracking>
Component: Albums-TrashAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, metzpinguin, mohammed.ahmed.anwer
Priority: NOR    
Version: 5.0.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In: 5.1.0

Description Stefan Schuster 2016-07-13 08:50:55 UTC
I can delete images without any problem – but when I delete an album (right click -> „delete album“) nothing happens. The album is still visible in the album-list – and it still exists in the filesystem. (But I can‘t access the folder).

After closing „digiKam“ the directory vanishes without any further action. I think there is a „lock-problem“ or something like that…


Reproducible: Always

Steps to Reproduce:
1. right-click on an album -> delete album


Actual Results:  
Nothing happens until closing digiKam

Expected Results:  
The album should be deleted...
Comment 1 caulier.gilles 2016-07-13 09:06:06 UTC
Mohamed,

Sound like we have forget to implement DK trash support for album. Right ?

Gilles Caulier
Comment 2 Maik Qualmann 2016-07-13 10:36:18 UTC
This is a bug from QFileSystemWatcher under Windows. QFileSystemWatcher locks the folders. I will look how we can solve the problem.

Maik
Comment 3 Mohamed 2016-07-13 11:22:25 UTC
Yes, Let's support album deletion in DK trash

Mohamed
Comment 4 Maik Qualmann 2016-07-31 12:53:43 UTC
Git commit 6ceab7bc027b8f0fa6b7da86e2f48f77728a52b2 by Maik Qualmann.
Committed on 31/07/2016 at 12:51.
Pushed by mqualmann into branch 'master'.

workaround for locked albums under Windows
FIXED-IN: 5.1.0

M  +2    -1    NEWS
M  +11   -0    libs/album/albummanager.cpp
M  +2    -0    libs/album/albummanager.h
M  +19   -0    libs/album/albumwatch.cpp
M  +2    -0    libs/album/albumwatch.h
M  +8    -0    libs/database/utils/dio.cpp

http://commits.kde.org/digikam/6ceab7bc027b8f0fa6b7da86e2f48f77728a52b2