summaryrefslogtreecommitdiff
path: root/src/wx/content_panel.cc
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/content_panel.cc
parent2719964f89431a0598ef617326158309afe5ba43 (diff)
Replace Content::paths_valid() with a free utility function.
Diffstat (limited to 'src/wx/content_panel.cc')
-rw-r--r--src/wx/content_panel.cc4
1 files changed, 2 insertions, 2 deletions
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 ();