Bug 365596 - Deleting Albums and renaming not possible
Summary: Deleting Albums and renaming not possible
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Albums-Trash (show other bugs)
Version: 5.0.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-13 08:50 UTC by Stefan Schuster
Modified: 2017-08-15 05:44 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.1.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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