Set 'i' earlier in name_values.
[dcpomatic.git] / src / wx / kdm_dialog.cc
index d946e1d..d747418 100644 (file)
@@ -185,6 +185,7 @@ KDMDialog::make_clicked ()
                                name_values['f'] = film->name();
                                name_values['b'] = dcp::LocalTime(begin).date() + " " + dcp::LocalTime(begin).time_of_day(false, false);
                                name_values['e'] = dcp::LocalTime(end).date() + " " + dcp::LocalTime(end).time_of_day(false, false);
+                               name_values['i'] = kdm.cpl_id();
 
                                kdms.push_back (KDMWithMetadataPtr(new DCPKDMWithMetadata(name_values, i->cinema, kdm)));
                        }