NOISSUE force saving of any outstanding instance component state on exit
This commit is contained in:
parent
e0bea1e46a
commit
95e6f37d39
10 changed files with 42 additions and 15 deletions
|
@ -241,6 +241,14 @@ InstanceList::InstListError InstanceList::loadList(bool complete)
|
|||
return NoError;
|
||||
}
|
||||
|
||||
void InstanceList::saveNow()
|
||||
{
|
||||
for(auto & item: m_instances)
|
||||
{
|
||||
item->saveNow();
|
||||
}
|
||||
}
|
||||
|
||||
void InstanceList::add(const QList<InstancePtr> &t)
|
||||
{
|
||||
beginInsertRows(QModelIndex(), m_instances.count(), m_instances.count() + t.size() - 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue