From fe56f4e0ac26fbe1bea8d7b07f61dcc26cc26984 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 23 May 2017 11:51:55 +0100 Subject: Add Content::set_paths(). --- src/lib/content.cc | 7 +++++++ src/lib/content.h | 1 + 2 files changed, 8 insertions(+) (limited to 'src/lib') diff --git a/src/lib/content.cc b/src/lib/content.cc index 942e9e533..21b04c649 100644 --- a/src/lib/content.cc +++ b/src/lib/content.cc @@ -289,6 +289,13 @@ Content::set_path (boost::filesystem::path path) signal_changed (ContentProperty::PATH); } +void +Content::set_paths (vector paths) +{ + _paths = paths; + signal_changed (ContentProperty::PATH); +} + string Content::path_summary () const { diff --git a/src/lib/content.h b/src/lib/content.h index 334a82756..d0a0466af 100644 --- a/src/lib/content.h +++ b/src/lib/content.h @@ -99,6 +99,7 @@ public: boost::shared_ptr clone () const; void set_path (boost::filesystem::path); + void set_paths (std::vector paths); std::string path_summary () const; -- cgit v1.2.3