summaryrefslogtreecommitdiff
path: root/src/lib/config.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-02-19 14:32:16 +0000
committerCarl Hetherington <cth@carlh.net>2019-02-19 14:32:16 +0000
commit86bbc0981a60ad9ba7b7bdbf28a34f197f83f6cb (patch)
treef59beeef8d2201de265e916292b025860f3032e3 /src/lib/config.h
parent8c397a895b1204473ebd8df5108563b1dd0a4e1c (diff)
Don't display non-existant items in the history.
Diffstat (limited to 'src/lib/config.h')
-rw-r--r--src/lib/config.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/config.h b/src/lib/config.h
index 21463fdb5..3518dc63f 100644
--- a/src/lib/config.h
+++ b/src/lib/config.h
@@ -861,7 +861,9 @@ public:
}
void add_to_history (boost::filesystem::path p);
+ void clean_history ();
void add_to_player_history (boost::filesystem::path p);
+ void clean_player_history ();
void set_jump_to_selected (bool j) {
maybe_set (_jump_to_selected, j);
@@ -1099,6 +1101,7 @@ private:
boost::shared_ptr<dcp::CertificateChain> create_certificate_chain ();
boost::filesystem::path directory_or (boost::optional<boost::filesystem::path> dir, boost::filesystem::path a) const;
void add_to_history_internal (std::vector<boost::filesystem::path>& h, boost::filesystem::path p);
+ void clean_history_internal (std::vector<boost::filesystem::path>& h);
void backup ();
template <class T>