summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-06-27 13:23:09 +0100
committerCarl Hetherington <cth@carlh.net>2014-06-27 13:23:09 +0100
commit70cda1727416878992fd7b728d7a77f609330d8d (patch)
tree171460936486e6059dd61fcaa5a9073c2b36e729
parentce95400c73db6ece7ef34e0171e7e04b72f9ca03 (diff)
Fix the up/down buttons in the content list.
Reported-by: Daniel Chauvet
-rw-r--r--ChangeLog4
-rw-r--r--src/wx/film_editor.cc6
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 6be780b4b..80ab67b6b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-06-27 Carl Hetherington <cth@carlh.net>
+
+ * Fix up/down buttons in content list.
+
2014-06-26 Carl Hetherington <cth@carlh.net>
* Version 1.70.0 released.
diff --git a/src/wx/film_editor.cc b/src/wx/film_editor.cc
index 9c980b625..de215a0d2 100644
--- a/src/wx/film_editor.cc
+++ b/src/wx/film_editor.cc
@@ -532,6 +532,8 @@ FilmEditor::film_content_changed (int property)
setup_dcp_name ();
} else if (property == ContentProperty::PATH) {
setup_content ();
+ } else if (property == ContentProperty::POSITION) {
+ setup_content ();
}
}
@@ -753,6 +755,8 @@ FilmEditor::setup_content ()
_content->DeleteAllItems ();
ContentList content = _film->content ();
+ sort (content.begin(), content.end(), ContentSorter ());
+
for (ContentList::iterator i = content.begin(); i != content.end(); ++i) {
int const t = _content->GetItemCount ();
bool const valid = (*i)->paths_valid ();
@@ -761,7 +765,7 @@ FilmEditor::setup_content ()
if (!valid) {
s = _("MISSING: ") + s;
}
-
+
_content->InsertItem (t, std_to_wx (s));
if ((*i)->summary() == selected_summary) {