more fixes for 450bf1b6

This commit is contained in:
Andrzej Rybczak
2009-07-05 14:27:43 +02:00
parent ddaf141f2e
commit 1510773176

View File

@@ -1385,7 +1385,7 @@ int main(int argc, char *argv[])
{
Mpd.Rename(locale_to_utf_cpy(old_name), locale_to_utf_cpy(new_name));
ShowMessage("Playlist \"%s\" renamed to \"%s\"", old_name.c_str(), new_name.c_str());
if (!Config.local_browser)
if (!Config.local_browser && myBrowser->Main())
myBrowser->GetDirectory("/");
myPlaylistEditor->Playlists->Clear(0);
}
@@ -1583,9 +1583,10 @@ int main(int argc, char *argv[])
if (id != mDialog.Size()-1)
{
// refresh playlist's lists
if (!Config.local_browser && myBrowser->CurrentDir() == "/")
if (!Config.local_browser && myBrowser->Main() && myBrowser->CurrentDir() == "/")
myBrowser->GetDirectory("/");
myPlaylistEditor->Playlists->Clear(0); // make playlist editor update itself
if (myPlaylistEditor->Main())
myPlaylistEditor->Playlists->Clear(0); // make playlist editor update itself
}
if (myScreen == myPlaylist)
myPlaylist->EnableHighlighting();