diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-05-23 11:51:55 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-05-23 11:51:55 +0100 |
| commit | fe56f4e0ac26fbe1bea8d7b07f61dcc26cc26984 (patch) | |
| tree | cdcebdf673f25db025c48d85784edc5022a65702 /src/lib | |
| parent | f097755835c7607810ceef3613ee00aca50f33fe (diff) | |
Add Content::set_paths().
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/content.cc | 7 | ||||
| -rw-r--r-- | src/lib/content.h | 1 |
2 files changed, 8 insertions, 0 deletions
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<boost::filesystem::path> 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<Content> clone () const; void set_path (boost::filesystem::path); + void set_paths (std::vector<boost::filesystem::path> paths); std::string path_summary () const; |
