Commit 8d9583e4 authored by Scott Wheeler's avatar Scott Wheeler

Oops, missed these in the last commit.

Don't use latin1-only playlist names.

svn path=/trunk/kdemultimedia/juk/; revision=231273
parent 4746e5aa
......@@ -187,15 +187,17 @@ void Playlist::SharedSettings::writeConfig()
PlaylistItem *Playlist::m_playingItem = 0;
int Playlist::m_leftColumn = 0;
Playlist::Playlist(QWidget *parent, const QString &name) : KListView(parent, name.latin1()),
m_playlistName(name)
Playlist::Playlist(QWidget *parent, const QString &name) :
KListView(parent, name.latin1()),
m_playlistName(name)
{
setup();
}
Playlist::Playlist(const QFileInfo &playlistFile, QWidget *parent, const char *name) : KListView(parent, name),
m_fileName(playlistFile.absFilePath())
Playlist::Playlist(const QFileInfo &playlistFile, QWidget *parent, const QString &name) :
KListView(parent, name.latin1()),
m_fileName(playlistFile.absFilePath())
{
setup();
loadFile(m_fileName, playlistFile);
......
......@@ -55,7 +55,7 @@ public:
* Before creating a playlist directly, please see
* PlaylistSplitter::openPlaylist().
*/
Playlist(const QFileInfo &playlistFile, QWidget *parent, const char *name = 0);
Playlist(const QFileInfo &playlistFile, QWidget *parent, const QString &name);
virtual ~Playlist();
......
......@@ -587,7 +587,7 @@ Playlist *PlaylistSplitter::openPlaylist(const QString &file)
return 0;
}
Playlist *p = new Playlist(file, m_playlistStack, fileInfo.baseName(true).latin1());
Playlist *p = new Playlist(file, m_playlistStack, fileInfo.baseName(true));
setupPlaylist(p);
return p;
}
......
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