return;
sr = m_activeSequence->selectedRun();
- sr->saveUserDataToJSON();
+ saveSingleRunUserData(sr);
}
void DataManager::onSaveAllChanges()
{
- SingleRunsMap::iterator it;
+ for (NameSequencePair& p : m_sequences) {
+ std::shared_ptr<Sequence> s = p.second;
+ SingleRunsMap::iterator it = s->begin();
- if (m_activeSequence == nullptr)
- return;
-
- it = m_activeSequence->begin();
- while (it != m_activeSequence->end()) {
- it->second->saveUserDataToJSON();
- it++;
+ while (it != s->end()) {
+ saveSingleRunUserData(it->second);
+ it++;
+ }
}
}