vector<ustring> to_embed;
bool multi = paths.size() > 1;
int nth = 0;
+ bool use_timestamp = (pos == -1);
switch (chns) {
case Editing::ImportDistinctFiles:
for (vector<ustring>::iterator a = paths.begin(); a != paths.end(); ++a) {
+ /* have to reset this for every file we handle */
+ if (use_timestamp) {
+ pos = -1;
+ }
+
to_embed.clear ();
to_embed.push_back (*a);
case Editing::ImportDistinctChannels:
for (vector<ustring>::iterator a = paths.begin(); a != paths.end(); ++a) {
+ /* have to reset this for every file we handle */
+ if (use_timestamp) {
+ pos = -1;
+ }
+
to_embed.clear ();
to_embed.push_back (*a);
case Editing::ImportSerializeFiles:
for (vector<ustring>::iterator a = paths.begin(); a != paths.end(); ++a) {
+ /* have to reset this for every file we handle */
+ if (use_timestamp) {
+ pos = -1;
+ }
+
to_embed.clear ();
to_embed.push_back (*a);