fix Browser::LocateSong() function
This commit is contained in:
@@ -451,6 +451,8 @@ void Browser::LocateSong(const MPD::Song &s)
|
|||||||
|
|
||||||
Config.local_browser = !s.IsFromDB();
|
Config.local_browser = !s.IsFromDB();
|
||||||
|
|
||||||
|
SwitchTo();
|
||||||
|
|
||||||
string option = s.toString(Config.song_status_format);
|
string option = s.toString(Config.song_status_format);
|
||||||
locale_to_utf(option);
|
locale_to_utf(option);
|
||||||
if (itsBrowsedDir != s.GetDirectory())
|
if (itsBrowsedDir != s.GetDirectory())
|
||||||
@@ -463,7 +465,6 @@ void Browser::LocateSong(const MPD::Song &s)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
SwitchTo();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Browser::GetDirectory(string dir, string subdir)
|
void Browser::GetDirectory(string dir, string subdir)
|
||||||
|
|||||||
Reference in New Issue
Block a user