more fixes for 450bf1b6
This commit is contained in:
@@ -1385,7 +1385,7 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
Mpd.Rename(locale_to_utf_cpy(old_name), locale_to_utf_cpy(new_name));
|
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());
|
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("/");
|
myBrowser->GetDirectory("/");
|
||||||
myPlaylistEditor->Playlists->Clear(0);
|
myPlaylistEditor->Playlists->Clear(0);
|
||||||
}
|
}
|
||||||
@@ -1583,9 +1583,10 @@ int main(int argc, char *argv[])
|
|||||||
if (id != mDialog.Size()-1)
|
if (id != mDialog.Size()-1)
|
||||||
{
|
{
|
||||||
// refresh playlist's lists
|
// refresh playlist's lists
|
||||||
if (!Config.local_browser && myBrowser->CurrentDir() == "/")
|
if (!Config.local_browser && myBrowser->Main() && myBrowser->CurrentDir() == "/")
|
||||||
myBrowser->GetDirectory("/");
|
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)
|
if (myScreen == myPlaylist)
|
||||||
myPlaylist->EnableHighlighting();
|
myPlaylist->EnableHighlighting();
|
||||||
|
|||||||
Reference in New Issue
Block a user