summaryrefslogtreecommitdiff
path: root/src/wx
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-03-04 23:24:59 +0100
committerCarl Hetherington <cth@carlh.net>2025-03-05 23:52:14 +0100
commitab766096598188759d29829043bf28e63379b730 (patch)
tree1fb8fb9eb22c275834db2671395e7b3558e7aac4 /src/wx
parent2719964f89431a0598ef617326158309afe5ba43 (diff)
Replace Content::paths_valid() with a free utility function.
Diffstat (limited to 'src/wx')
-rw-r--r--src/wx/content_menu.cc2
-rw-r--r--src/wx/content_panel.cc4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/wx/content_menu.cc b/src/wx/content_menu.cc
index e2dfdaf97..dadd1877f 100644
--- a/src/wx/content_menu.cc
+++ b/src/wx/content_menu.cc
@@ -155,7 +155,7 @@ ContentMenu::popup (weak_ptr<Film> film, ContentList c, TimelineContentViewList
_join->Enable (n > 1);
- _find_missing->Enable (_content.size() == 1 && !_content.front()->paths_valid ());
+ _find_missing->Enable(_content.size() == 1 && !paths_exist(_content.front()->paths()));
_properties->Enable (_content.size() == 1);
_advanced->Enable (_content.size() == 1);
_re_examine->Enable (!_content.empty ());
diff --git a/src/wx/content_panel.cc b/src/wx/content_panel.cc
index 8938ef0fd..826481216 100644
--- a/src/wx/content_panel.cc
+++ b/src/wx/content_panel.cc
@@ -482,7 +482,7 @@ ContentPanel::check_selection ()
optional<DCPTime> go_to;
for (auto content: selected()) {
- if (content->paths_valid()) {
+ if (paths_exist(content->paths())) {
auto position = content->position();
if (auto text_content = dynamic_pointer_cast<StringTextFileContent>(content)) {
/* Rather special case; if we select a text subtitle file jump to its
@@ -896,7 +896,7 @@ ContentPanel::setup ()
vector<ContentListCtrl::Item> items;
for (auto i: content) {
- bool const valid = i->paths_valid ();
+ bool const valid = paths_exist(i->paths());
auto dcp = dynamic_pointer_cast<DCPContent> (i);
bool const needs_kdm = dcp && dcp->needs_kdm ();