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.
master
Andrzej Rybczak 17 years ago
parent 2af8b1f91b
commit eff5ebba4e
  1. 3
      src/browser.cpp

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

Loading…
Cancel
Save