include timespan-option with export preset
authorRobin Gareus <robin@gareus.org>
Fri, 12 Feb 2016 13:01:29 +0000 (14:01 +0100)
committerRobin Gareus <robin@gareus.org>
Fri, 12 Feb 2016 13:01:40 +0000 (14:01 +0100)
libs/ardour/export_filename.cc

index 8186982384e130f80907bfe733370fff57b2b692..19ead2d0266995d9615225789a8e3c87507367cf 100644 (file)
@@ -90,6 +90,7 @@ ExportFilename::get_state ()
 
        add_field (node, "label", include_label, label);
        add_field (node, "session", include_session);
+       add_field (node, "timespan", include_timespan);
        add_field (node, "revision", include_revision);
        add_field (node, "time", include_time, enum_2_string (time_format));
        add_field (node, "date", include_date, enum_2_string (date_format));
@@ -140,6 +141,9 @@ ExportFilename::set_state (const XMLNode & node)
        pair = get_field (node, "session");
        include_session = pair.first;
 
+       pair = get_field (node, "timespan");
+       include_timespan = pair.first;
+
        pair = get_field (node, "revision");
        include_revision = pair.first;