From kde-commits Thu Jan 26 02:29:40 2012 From: Michael Pyne Date: Thu, 26 Jan 2012 02:29:40 +0000 To: kde-commits Subject: KDE/kdemultimedia/juk Message-Id: <20120126022940.77F03AC892 () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=132754516614010 SVN commit 1275919 by mpyne: Use canonicalPath for playlist m3u files. This is as opposed to absolutePath, which can end up adding the same playlist multiple times when given the combination of symlinks and stupid folder scan settings. M +2 -2 playlist.cpp --- trunk/KDE/kdemultimedia/juk/playlist.cpp #1275918:1275919 @@ -381,7 +381,7 @@ m_widthsDirty(true), m_searchEnabled(true), m_lastSelected(0), - m_fileName(playlistFile.absoluteFilePath()), + m_fileName(playlistFile.canonicalFilePath()), m_rmbMenu(0), m_toolTip(0), m_blockDataChanged(false) @@ -1880,7 +1880,7 @@ } if(importPlaylists && MediaFiles::isPlaylistFile(file) && - !m_collection->containsPlaylistFile(fileInfo.absoluteFilePath())) + !m_collection->containsPlaylistFile(fileInfo.canonicalFilePath())) { new Playlist(m_collection, fileInfo); return;