little fix for tag editor

This commit is contained in:
unknown
2008-08-13 07:42:42 +02:00
parent 8bb730ff12
commit d855987673

View File

@@ -451,9 +451,6 @@ void ShowMessage(const string &message, int delay)
bool GetSongInfo(Song &s) bool GetSongInfo(Song &s)
{ {
mTagEditor->Clear();
mTagEditor->Reset();
string path_to_file = Config.mpd_music_dir + "/" + s.GetFile(); string path_to_file = Config.mpd_music_dir + "/" + s.GetFile();
# ifdef HAVE_TAGLIB_H # ifdef HAVE_TAGLIB_H
@@ -463,6 +460,9 @@ bool GetSongInfo(Song &s)
s.SetComment(f.tag()->comment().to8Bit(UNICODE)); s.SetComment(f.tag()->comment().to8Bit(UNICODE));
# endif # endif
mTagEditor->Clear();
mTagEditor->Reset();
mTagEditor->AddStaticOption("[b][white]Song name: [green][/b]" + s.GetShortFilename()); mTagEditor->AddStaticOption("[b][white]Song name: [green][/b]" + s.GetShortFilename());
mTagEditor->AddStaticOption("[b][white]Location in DB: [green][/b]" + s.GetDirectory()); mTagEditor->AddStaticOption("[b][white]Location in DB: [green][/b]" + s.GetDirectory());
mTagEditor->AddStaticOption(""); mTagEditor->AddStaticOption("");