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

@@ -20,6 +20,7 @@
#include "display.h"
#include "global.h"
#include "helpers.h"
#include "playlist.h"
#include "settings.h"
#include "sort_playlist.h"
@@ -156,7 +157,7 @@ void SortPlaylistDialog::sort() const
auto &pl = myPlaylist->main();
auto begin = pl.begin(), end = pl.end();
// if songs are selected, sort range from first selected to last selected
if (pl.hasSelected())
if (hasSelected(pl.begin(), pl.end()))
{
while (!begin->isSelected())
++begin;