diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2024-11-11 12:28:23 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2024-11-11 12:28:23 +0100 |
commit | 483b2e960f24c370d9e0260ab4ba8b3453408590 (patch) | |
tree | ec5e83ac39e4e5cec0ab9494da2d0edaafe72d89 /src/Photo.vala | |
parent | 1bbf886bafc680c56ddd5e27ddd803b4e03685df (diff) | |
parent | cb001bb8056869f98e9a62248bdd509a69d08faf (diff) |
Merge branch 'feature/upstrem' into develop
Diffstat (limited to 'src/Photo.vala')
-rw-r--r-- | src/Photo.vala | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Photo.vala b/src/Photo.vala index f636a32..2b90361 100644 --- a/src/Photo.vala +++ b/src/Photo.vala @@ -405,9 +405,7 @@ public abstract class Photo : PhotoSource, Dateable, Positionable { readers.master = row.master.file_format.create_reader(row.master.filepath); // get the file title of the Photo without using a File object, skipping the separator itself - string? basename = String.sliced_at_last_char(row.master.filepath, Path.DIR_SEPARATOR); - if (basename != null) - file_title = String.sliced_at(basename, 1); + file_title = Path.get_basename(row.master.filepath); if (is_string_empty(file_title)) file_title = row.master.filepath; |