Commit 7a2515e4 authored by Scott Wheeler's avatar Scott Wheeler

Make JuK resolve symlinks when checking to see if the file is unique.

CCMAIL:lauri@kde.org

svn path=/trunk/kdemultimedia/juk/; revision=211641
parent 4281081f
......@@ -394,7 +394,14 @@ void Playlist::contentsDragMoveEvent(QDragMoveEvent *e)
PlaylistItem *Playlist::createItem(const QFileInfo &file, QListViewItem *after)
{
QString filePath = file.absFilePath();
QString filePath;
if(!file.isSymLink())
filePath = file.absFilePath();
else {
QFileInfo linkFile(file.readLink());
filePath = linkFile.absFilePath();
}
CollectionListItem *item = CollectionList::instance()->lookup(filePath);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment