From 90efaae7cf4348e838ce24f4abfe1c10836081f2 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Mon, 30 Mar 2009 20:26:06 +0200 Subject: [PATCH] send commands list while readding local item to playlist --- src/tag_editor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tag_editor.cpp b/src/tag_editor.cpp index fc359a49..41778992 100644 --- a/src/tag_editor.cpp +++ b/src/tag_editor.cpp @@ -907,6 +907,7 @@ bool TagEditor::WriteTags(Song &s) // if we rename local file, it won't get updated // so just remove it from playlist and add again size_t pos = myPlaylist->Main()->Choice(); + Mpd->StartCommandsList(); Mpd->Delete(pos); int id = Mpd->AddSong("file://" + new_name); if (id >= 0) @@ -914,6 +915,7 @@ bool TagEditor::WriteTags(Song &s) s = myPlaylist->Main()->Back(); Mpd->Move(s.GetPosition(), pos); } + Mpd->CommitCommandsList(); } else // only myBrowser->Main() s.SetFile(new_name);