diff options
author | Andrzej Rybczak <electricityispower@gmail.com> | 2012-08-31 04:38:03 +0200 |
---|---|---|
committer | Andrzej Rybczak <electricityispower@gmail.com> | 2012-08-31 04:38:20 +0200 |
commit | d8b2d20bdb277c94ceae922c0a60a78ca6a944be (patch) | |
tree | 22a6ebbcc7a773f32cbea09179c3a7117991b19b /src/search_engine.h | |
parent | 0ba847dc3c0923ded45972eaf2be3ee7c36a5cf1 (diff) |
menu: move a few methods to Item class
Diffstat (limited to 'src/search_engine.h')
-rw-r--r-- | src/search_engine.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/search_engine.h b/src/search_engine.h index 50dd006e..1001cff2 100644 --- a/src/search_engine.h +++ b/src/search_engine.h @@ -86,7 +86,7 @@ class SearchEngine : public Screen< Menu<SEItem> > virtual bool isTabbable() { return true; } virtual MPD::Song *CurrentSong(); - virtual MPD::Song *GetSong(size_t pos) { return !w->isSeparator(pos) && w->at(pos).isSong() ? &w->at(pos).song() : 0; } + virtual MPD::Song *GetSong(size_t pos) { return !(*w)[pos].isSeparator() && w->at(pos).value().isSong() ? &w->at(pos).value().song() : 0; } virtual bool allowsSelection() { return w->Choice() >= StaticOptions; } virtual void ReverseSelection() { w->ReverseSelection(StaticOptions); } @@ -99,7 +99,6 @@ class SearchEngine : public Screen< Menu<SEItem> > virtual bool isMergable() { return true; } void UpdateFoundList(); - void SelectAlbum(); static size_t StaticOptions; static size_t SearchButton; |