current_interthread_info = &import_status;
import_status.current = 1;
import_status.total = paths.size ();
+ import_status.all_done = false;
ImportProgressWindow ipw (&import_status, _("Import"), _("Cancel Import"));
}
}
}
+
+ import_status.all_done = true;
}
void
import_status.done = false;
import_status.cancel = false;
import_status.freeze = false;
- import_status.done = 0.0;
import_status.quality = quality;
import_status.replace_existing_source = replace;
if (use_timestamp && ar) {
- cerr << "Using timestamp to place region " << (*r)->name() << endl;
-
/* get timestamp for this region */
const boost::shared_ptr<Source> s (ar->sources().front());
}
_bar.set_text (string_compose (_("Importing file: %1 of %2"), c, _import_status->total));
-
- return !(_import_status->done || _import_status->cancel);
+
+ return !(_import_status->all_done || _import_status->cancel);
}
std::vector<std::string> paths;
bool replace_existing_source;
+ /** set to true when all files have been imported, as distinct from the done in ARDOUR::InterThreadInfo,
+ * which indicates that one run of the import thread has been completed.
+ */
+ bool all_done;
+
/* result */
SourceList sources;
};