mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-04 04:39:33 +01:00
time span column should actually sort by location start time
This commit is contained in:
parent
96f55e8184
commit
f127eebff0
2 changed files with 10 additions and 5 deletions
|
|
@ -415,9 +415,8 @@ ExportTimespanSelectorSingle::ExportTimespanSelectorSingle (ARDOUR::Session * se
|
|||
range_col->set_sort_column(4); // set sort name
|
||||
|
||||
Gtk::TreeViewColumn* time_span_col = range_view.get_column(3); // time span column
|
||||
time_span_col->set_sort_column(8); //set sort length_actual
|
||||
time_span_col->set_sort_column(9); //set sort start
|
||||
|
||||
range_list->set_sort_column(5, Gtk::SORT_DESCENDING);
|
||||
Gtk::TreeViewColumn* date_col = range_view.get_column(5); // date column
|
||||
date_col->set_sort_column(7); // set sort as the timestamp
|
||||
|
||||
|
|
@ -465,6 +464,9 @@ ExportTimespanSelectorSingle::fill_range_list ()
|
|||
//the actual samplecnt_t for sorting
|
||||
row[range_cols.length_actual] = (*it)->length();
|
||||
|
||||
//start samplecnt_t for sorting
|
||||
row[range_cols.start] = (*it)->start();
|
||||
|
||||
Glib::DateTime gdt(Glib::DateTime::create_now_local ((*it)->timestamp()));
|
||||
row[range_cols.timestamp] = (*it)->timestamp();
|
||||
row[range_cols.date] = gdt.format ("%F %H:%M");;
|
||||
|
|
@ -527,9 +529,8 @@ ExportTimespanSelectorMultiple::ExportTimespanSelectorMultiple (ARDOUR::Session
|
|||
range_col->set_sort_column(4); // set sort name
|
||||
|
||||
Gtk::TreeViewColumn* time_span_col = range_view.get_column(3); // time span column
|
||||
time_span_col->set_sort_column(8); //set sort length_actual
|
||||
time_span_col->set_sort_column(9); //set sort start
|
||||
|
||||
range_list->set_sort_column(5, Gtk::SORT_DESCENDING);
|
||||
Gtk::TreeViewColumn* date_col = range_view.get_column(5); // date column
|
||||
date_col->set_sort_column(7); // set sort as the timestamp
|
||||
|
||||
|
|
@ -568,6 +569,9 @@ ExportTimespanSelectorMultiple::fill_range_list ()
|
|||
//the actual samplecnt_t for sorting
|
||||
row[range_cols.length_actual] = (*it)->length();
|
||||
|
||||
//start samplecnt_t for sorting
|
||||
row[range_cols.start] = (*it)->start();
|
||||
|
||||
Glib::DateTime gdt(Glib::DateTime::create_now_local ((*it)->timestamp()));
|
||||
row[range_cols.timestamp] = (*it)->timestamp();
|
||||
row[range_cols.date] = gdt.format ("%F %H:%M");;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue