Summary: | "Move files to collection..." deletes directory if no files left | ||
---|---|---|---|
Product: | [Applications] amarok | Reporter: | Adam Porter <adam> |
Component: | Collections/Local | Assignee: | Amarok Developers <amarok-bugs-dist> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Debian testing | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Adam Porter
2006-11-03 08:37:30 UTC
I agree, this sounds like a bug. Well this is a silent feature which i snuck in because i found it useful. After using the organise music feature, empty directories would be left within the collection folder, and its really bloody annoying to remove them. A work-around is to put a file that won't be organized into this directory - e.g. do 'touch .keep'. I agree with Mark that this feature can be seen as a bug, but I also think that it comes in quite handy at times. Perhaps it should be disabled, if files being organized are not yet part of the collection dirctory hierarchy? SVN commit 666959 by seb: When organising files, only delete the parent directory if it is within the Collection heirarchy. BUG: 136757 M +1 -4 collectiondb.cpp --- branches/stable/extragear/multimedia/amarok/src/collectiondb.cpp #666958:666959 @@ -4056,17 +4056,14 @@ if( !config.hasKey("Icon") ) { - //config.writeEntry("Icon", QString("%1/.front.png").arg( path )); config.writeEntry( "Icon", cover ); config.sync(); - debug() << "Using this cover as icon for: " << path << endl; - debug() << cover << endl; } //} //Not amazon nice. } } - if( localFile && QDir().rmdir( src.directory() ) ) + if( localFile && isDirInCollection( src.directory() ) && QDir().rmdir( src.directory() ) ) { debug() << "removed: " << src.directory() << endl; } |