move a few small functions to actions
This commit is contained in:
@@ -208,26 +208,6 @@ void PlaylistEditor::Update()
|
||||
}
|
||||
}
|
||||
|
||||
void PlaylistEditor::MoveSelectedItems(Playlist::Movement where)
|
||||
{
|
||||
if (Content->empty() || isContentFiltered())
|
||||
return;
|
||||
|
||||
switch (where)
|
||||
{
|
||||
case Playlist::mUp:
|
||||
{
|
||||
moveSelectedItemsUp(*Content, std::bind(&MPD::Connection::PlaylistMove, _1, Playlists->current().value(), _2, _3));
|
||||
break;
|
||||
}
|
||||
case Playlist::mDown:
|
||||
{
|
||||
moveSelectedItemsDown(*Content, std::bind(&MPD::Connection::PlaylistMove, _1, Playlists->current().value(), _2, _3));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool PlaylistEditor::isContentFiltered()
|
||||
{
|
||||
if (Content->isFiltered())
|
||||
@@ -238,7 +218,6 @@ bool PlaylistEditor::isContentFiltered()
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
bool PlaylistEditor::isNextColumnAvailable()
|
||||
{
|
||||
if (w == Playlists)
|
||||
|
||||
Reference in New Issue
Block a user