fix locating now playing song in browser (using 'o')

due to change of keybinding for switching to local browser,
the trigger is invoked in SwitchTo() if main screen is already
pointing to browser. since we use 'o' in browser to locate now
playing song, this function was switching browser to wrong mode
and thus requested song couldn't be found.
This commit is contained in:
Andrzej Rybczak
2009-10-24 01:01:32 +02:00
parent 2af8b1f91b
commit eff5ebba4e

View File

@@ -298,6 +298,7 @@ void Browser::LocateSong(const MPD::Song &s)
itsBrowseLocally = !s.isFromDB();
if (myScreen != this)
SwitchTo();
std::string option = s.toString(Config.song_status_format);