From 3867b131effba6ac878c69026eb8c5426dfd524d Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Sat, 10 Oct 2009 18:50:15 +0200 Subject: [PATCH] tiny tag editor: fix message about being unable to read the file --- src/tiny_tag_editor.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/tiny_tag_editor.cpp b/src/tiny_tag_editor.cpp index 0348a966..9fc4031b 100644 --- a/src/tiny_tag_editor.cpp +++ b/src/tiny_tag_editor.cpp @@ -77,10 +77,13 @@ void TinyTagEditor::SwitchTo() } else { - std::string message = "Couldn't read file \""; + std::string full_path; if (itsEdited.isFromDB()) - message += Config.mpd_music_dir; - message += Shorten(TO_WSTRING(itsEdited.GetFile()), COLS-message.length()-3); + full_path += Config.mpd_music_dir; + full_path += itsEdited.GetFile(); + + std::string message = "Couldn't read file \""; + message += Shorten(TO_WSTRING(full_path), COLS-message.length()-3); message += "\"!"; ShowMessage("%s", message.c_str()); }