browser: use boost::filesystem for local browsing

This commit is contained in:
Andrzej Rybczak
2013-05-16 20:55:29 +02:00
parent a1b57a45af
commit 1c6c9e9c5a
4 changed files with 38 additions and 52 deletions

View File

@@ -1976,13 +1976,9 @@ void ToggleBrowserSortMode::run()
switch (Config.browser_sort_mode)
{
case smName:
if (!myBrowser->isLocal())
{
Config.browser_sort_mode = smMTime;
Statusbar::msg("Sort songs by: Modification time");
break;
}
// local browser doesn't support sorting by mtime, so we just skip it.
Config.browser_sort_mode = smMTime;
Statusbar::msg("Sort songs by: Modification time");
break;
case smMTime:
Config.browser_sort_mode = smCustomFormat;
Statusbar::msg("Sort songs by: Custom format");