Commit 69f5d02c authored by Scott Wheeler's avatar Scott Wheeler

Make these actions work again.

svn path=/trunk/kdemultimedia/juk/; revision=225333
parent b284cad1
......@@ -142,22 +142,22 @@ PlaylistList PlaylistBox::playlists()
void PlaylistBox::save()
{
save(static_cast<Item *>(selectedItem()));
save(static_cast<Item *>(currentItem()));
}
void PlaylistBox::saveAs()
{
saveAs(static_cast<Item *>(selectedItem()));
saveAs(static_cast<Item *>(currentItem()));
}
void PlaylistBox::rename()
{
rename(static_cast<Item *>(selectedItem()));
rename(static_cast<Item *>(currentItem()));
}
void PlaylistBox::duplicate()
{
duplicate(static_cast<Item *>(selectedItem()));
duplicate(static_cast<Item *>(currentItem()));
}
////////////////////////////////////////////////////////////////////////////////
......@@ -166,12 +166,12 @@ void PlaylistBox::duplicate()
void PlaylistBox::deleteItem()
{
deleteItem(static_cast<Item *>(selectedItem()));
deleteItem(static_cast<Item *>(currentItem()));
}
void PlaylistBox::paste()
{
Item *i = static_cast<Item *>(selectedItem());
Item *i = static_cast<Item *>(currentItem());
decode(kapp->clipboard()->data(), i);
}
......@@ -206,6 +206,7 @@ void PlaylistBox::save(Item *item)
void PlaylistBox::saveAs(Item *item)
{
kdDebug(65432) << "saveAs() - " << bool(item) << endl;
if(item)
item->playlist()->saveAs();
}
......
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