diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-07-24 22:25:30 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-07-24 22:25:30 +0100 |
| commit | 2ee5d40d5ce7406ce4f1975c4fbf88f70dbe2106 (patch) | |
| tree | 0184a6f777c12ce8263f9ed775d2985c8fab7373 /src/lib | |
| parent | 4656657c27198d67a188b11e17c42c6ac58ecfba (diff) | |
Restore nice rendering of content paths.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/ffmpeg_content.cc | 3 | ||||
| -rw-r--r-- | src/lib/sndfile_content.cc | 1 | ||||
| -rw-r--r-- | src/lib/still_image_content.cc | 3 |
3 files changed, 5 insertions, 2 deletions
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> 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<const Film> f, shared_ptr<const cxml: string SndfileContent::summary () const { + /* Get the string() here so that the name does not have quotes around it */ return String::compose (_("%1 [audio]"), path().filename().string()); } diff --git a/src/lib/still_image_content.cc b/src/lib/still_image_content.cc index e829e205d..d0600f52e 100644 --- a/src/lib/still_image_content.cc +++ b/src/lib/still_image_content.cc @@ -48,7 +48,8 @@ StillImageContent::StillImageContent (shared_ptr<const Film> f, shared_ptr<const string StillImageContent::summary () const { - return String::compose (_("%1 [still]"), path()); + /* Get the string() here so that the name does not have quotes around it */ + return String::compose (_("%1 [still]"), path().filename().string()); } string |
