No implicit session save when importing files (backend)

This commit is contained in:
Robin Gareus 2020-05-19 17:59:52 +02:00
parent 749291245c
commit 8564e6f760
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 0 additions and 9 deletions

View File

@ -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;
}

View File

@ -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;
}