diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-02-19 14:32:16 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-02-19 14:32:16 +0000 |
| commit | 86bbc0981a60ad9ba7b7bdbf28a34f197f83f6cb (patch) | |
| tree | f59beeef8d2201de265e916292b025860f3032e3 /src/tools | |
| parent | 8c397a895b1204473ebd8df5108563b1dd0a4e1c (diff) | |
Don't display non-existant items in the history.
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/dcpomatic.cc | 2 | ||||
| -rw-r--r-- | src/tools/dcpomatic_player.cc | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc index 4505cff84..854c1a3f3 100644 --- a/src/tools/dcpomatic.cc +++ b/src/tools/dcpomatic.cc @@ -1326,6 +1326,8 @@ private: int pos = _history_position; + /* Clear out non-existant history items before we re-build the menu */ + Config::instance()->clean_history (); vector<boost::filesystem::path> history = Config::instance()->history (); if (!history.empty ()) { diff --git a/src/tools/dcpomatic_player.cc b/src/tools/dcpomatic_player.cc index b2f95a20f..a1a5a59eb 100644 --- a/src/tools/dcpomatic_player.cc +++ b/src/tools/dcpomatic_player.cc @@ -848,6 +848,8 @@ private: int pos = _history_position; + /* Clear out non-existant history items before we re-build the menu */ + Config::instance()->clean_player_history (); vector<boost::filesystem::path> history = Config::instance()->player_history (); if (!history.empty ()) { |
