No implicit session save when importing files (backend)
This commit is contained in:
parent
749291245c
commit
8564e6f760
@ -641,10 +641,6 @@ Session::import_files (ImportStatus& status)
|
||||
}
|
||||
}
|
||||
|
||||
/* save state so that we don't lose these new Sources */
|
||||
|
||||
save_state (_name);
|
||||
|
||||
std::copy (all_new_sources.begin(), all_new_sources.end(), std::back_inserter(status.sources));
|
||||
} else {
|
||||
try {
|
||||
@ -657,4 +653,3 @@ Session::import_files (ImportStatus& status)
|
||||
|
||||
status.done = true;
|
||||
}
|
||||
|
||||
|
@ -269,8 +269,6 @@ Session::import_pt (PTFFormat& ptf, ImportStatus& status)
|
||||
info << _("All audio files found for PT import!") << endmsg;
|
||||
}
|
||||
|
||||
save_state("");
|
||||
|
||||
for (vector<PTFFormat::region_t>::const_iterator a = ptf.regions ().begin ();
|
||||
a != ptf.regions ().end (); ++a) {
|
||||
for (vector<ptflookup_t>::iterator p = ptfwavpair.begin ();
|
||||
@ -370,7 +368,6 @@ Session::import_pt (PTFFormat& ptf, ImportStatus& status)
|
||||
}
|
||||
|
||||
trymidi:
|
||||
save_state("");
|
||||
status.paths.clear();
|
||||
status.paths.push_back(ptf.path ());
|
||||
status.current = 1;
|
||||
@ -456,7 +453,6 @@ trymidi:
|
||||
|
||||
status.progress = 1.0;
|
||||
status.done = true;
|
||||
save_state("");
|
||||
status.sources.clear ();
|
||||
status.all_done = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user