Commit f4cc1221 authored by Scott Wheeler's avatar Scott Wheeler

Make duplicate work.

svn path=/trunk/kdemultimedia/juk/; revision=316898
parent 37484915
......@@ -162,7 +162,18 @@ void PlaylistCollection::rename()
void PlaylistCollection::duplicate()
{
bool ok;
QString name = KInputDialog::getText(
i18n("Duplicate"),
i18n("Please enter a name for this playlist:"),
uniquePlaylistName(currentPlaylist()->name()),
&ok);
if(!ok)
return;
raise(new Playlist(this, currentPlaylist()->items(), name));
}
void PlaylistCollection::save()
......
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