From d85598767383275706802fa6b608834843717e6a Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 13 Aug 2008 07:42:42 +0200 Subject: [PATCH] little fix for tag editor --- src/helpers.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/helpers.cpp b/src/helpers.cpp index 3a52511b..b1289a79 100644 --- a/src/helpers.cpp +++ b/src/helpers.cpp @@ -451,9 +451,6 @@ void ShowMessage(const string &message, int delay) bool GetSongInfo(Song &s) { - mTagEditor->Clear(); - mTagEditor->Reset(); - string path_to_file = Config.mpd_music_dir + "/" + s.GetFile(); # ifdef HAVE_TAGLIB_H @@ -463,6 +460,9 @@ bool GetSongInfo(Song &s) s.SetComment(f.tag()->comment().to8Bit(UNICODE)); # endif + mTagEditor->Clear(); + mTagEditor->Reset(); + mTagEditor->AddStaticOption("[b][white]Song name: [green][/b]" + s.GetShortFilename()); mTagEditor->AddStaticOption("[b][white]Location in DB: [green][/b]" + s.GetDirectory()); mTagEditor->AddStaticOption("");