menu: remove Menu::hasSelected

This commit is contained in:
Andrzej Rybczak
2012-09-18 20:41:35 +02:00
parent 4ff78d6304
commit 419965924f
4 changed files with 6 additions and 16 deletions

View File

@@ -797,7 +797,7 @@ void Delete::Run()
return;
std::string question;
if (myBrowser->main().hasSelected())
if (hasSelected(myBrowser->main().begin(), myBrowser->main().end()))
question = "Delete selected items?";
else
{
@@ -846,7 +846,7 @@ void Delete::Run()
if (myScreen->isActiveWindow(myPlaylistEditor->Playlists))
{
std::string question;
if (myPlaylistEditor->Playlists.hasSelected())
if (hasSelected(myPlaylistEditor->Playlists.begin(), myPlaylistEditor->Playlists.end()))
question = "Delete selected playlists?";
else
{