View Issue Details

IDCategoryLast Update
0007327bugs2017-04-26 07:42
ReportertimbyrAssigned Totimbyr 
Status resolvedResolutionfixed 
Product Version5.8 
Fixed in Version5.X git (version in description) 
Summary0007327: Changing Track order in GUI modifies order of XML nodes in Session file
DescriptionTested with 5.8 and 5.8.533

To reproduce just change the order of the Tracks in the Editor and Save the Session. The order of the Route XML nodes will now correspond to the order in the Editor/Mixer.

I can't see a reason for this behaviour as the PresentationInfo class/node determines visual ordering.

I propose that we sort routes by Stateful::id like we do in some other areas to keep the order from changing unless there is a good reason not to do so.

I have a patch to change/fix this issue if the change seems correct (although it is a fairly trivial change to implement)
TagsNo tags attached.



2017-04-25 20:49

administrator   ~0019638

Even though XML is unordered, it makes sense to me to keep changes to the XML as small as possible (e.g. store session in git).

Did you determine why the order of the RCU RouteList changes to begin with?

It sounds wrong that changing the PresentationInfo of a Route would update the RouteList.


2017-04-25 21:52

administrator   ~0019639

hah it's an explicit RoutePublicOrderSorter in Session::state() going all the way back to 2008.

Changing it to sort by PBD::id sounds like a good idea.


2017-04-26 07:42

developer   ~0019642

I've pushed a change to master as 3589740d69 that should fix this issue/feature. Included in a nightly build >= 5.8.594

Marking as resolved.

Issue History

Date Modified Username Field Change
2017-04-21 10:57 timbyr New Issue
2017-04-25 20:49 x42 Note Added: 0019638
2017-04-25 21:52 x42 Note Added: 0019639
2017-04-26 07:42 timbyr Note Added: 0019642
2017-04-26 07:42 timbyr Status new => resolved
2017-04-26 07:42 timbyr Fixed in Version => 5.X git (version in description)
2017-04-26 07:42 timbyr Resolution open => fixed
2017-04-26 07:42 timbyr Assigned To => timbyr