Bug 261629

Summary: "Delete Tracks" should also delete .mood file
Product: [Applications] amarok Reporter: Marius <rara>
Component: MoodbarAssignee: Amarok Developers <amarok-bugs-dist>
Status: RESOLVED FIXED    
Severity: wishlist CC: nhn
Priority: NOR    
Version: 2.4-GIT   
Target Milestone: 2.4.0   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In: 2.4.1
Sentry Crash Report:

Description Marius 2010-12-30 14:00:18 UTC
Version:           2.4-GIT (using KDE 4.5.4) 
OS:                Linux

When deleting tracks from the collection via right-click in the collection view and selecting "Delete Tracks" the media files are correctly removed from the disk, but the .mood-files belonging to them stay in the directory. They should also be removed because they are useless without the tracks.

Reproducible: Always
Comment 1 Marius 2010-12-30 14:12:15 UTC
Also when "organizing files", the mood files should be moved to the new location and their names be adjusted.
Comment 2 Sergey Ivanov 2011-02-09 13:37:52 UTC
Git commit 9488efdb99dac06acde3acb6dd4ec3c2f786a7fb by Sergey Ivanov.
Committed on 09/02/11 at 11:35.
Pushed by ivanov into branch 'master'.

Delete .mood files when tracks got removed from collection via Collection view context menu, and move them to new destination during Organize Collection process.
BUG: 261629

M  +4    -1    ChangeLog     
M  +35   -1    src/core-impl/collections/db/sql/SqlCollectionLocation.cpp     
M  +1    -0    src/core-impl/collections/db/sql/SqlCollectionLocation.h     

http://commits.kde.org/amarok/9488efdb99dac06acde3acb6dd4ec3c2f786a7fb