move local_browser variable from settings to Browser class

This commit is contained in:
Andrzej Rybczak
2009-10-01 00:30:18 +02:00
parent 35d776dfab
commit 55173cb419
6 changed files with 22 additions and 22 deletions

View File

@@ -74,7 +74,7 @@ void SelectedItemsAdder::SwitchTo()
if (hasToBeResized)
Resize();
bool playlists_not_active = myScreen == myBrowser && Config.local_browser;
bool playlists_not_active = myScreen == myBrowser && myBrowser->isLocal();
if (playlists_not_active)
ShowMessage("Local items cannot be added to m3u playlist!");
@@ -159,7 +159,7 @@ void SelectedItemsAdder::EnterPressed()
if (pos != w->Size()-1)
{
// refresh playlist's lists
if (!Config.local_browser && myBrowser->Main() && myBrowser->CurrentDir() == "/")
if (myBrowser->Main() && !myBrowser->isLocal() && myBrowser->CurrentDir() == "/")
myBrowser->GetDirectory("/");
if (myPlaylistEditor->Main())
myPlaylistEditor->Playlists->Clear(0); // make playlist editor update itself