From 2ee5d40d5ce7406ce4f1975c4fbf88f70dbe2106 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 24 Jul 2013 22:25:30 +0100 Subject: Restore nice rendering of content paths. --- src/lib/ffmpeg_content.cc | 3 ++- src/lib/sndfile_content.cc | 1 + src/lib/still_image_content.cc | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) (limited to 'src/lib') diff --git a/src/lib/ffmpeg_content.cc b/src/lib/ffmpeg_content.cc index 901cb53cf..24378ed3d 100644 --- a/src/lib/ffmpeg_content.cc +++ b/src/lib/ffmpeg_content.cc @@ -166,7 +166,8 @@ FFmpegContent::examine (shared_ptr job) string FFmpegContent::summary () const { - return String::compose (_("%1 [movie]"), path()); + /* Get the string() here so that the name does not have quotes around it */ + return String::compose (_("%1 [movie]"), path().filename().string()); } string diff --git a/src/lib/sndfile_content.cc b/src/lib/sndfile_content.cc index 713b80dcb..2ca00cf6d 100644 --- a/src/lib/sndfile_content.cc +++ b/src/lib/sndfile_content.cc @@ -55,6 +55,7 @@ SndfileContent::SndfileContent (shared_ptr f, shared_ptr f, shared_ptr