diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-12-03 18:36:28 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-12-03 18:36:28 +0100 |
commit | 95e6f37d3942d4ab681e2f2484f17bbf8489c332 (patch) | |
tree | 98cc9231f0d1f2c5c935108aa075c7f0a0b65e7a /api/logic/InstanceList.cpp | |
parent | e0bea1e46a8086b098248ec506b71e5f4512c70f (diff) | |
download | PrismLauncher-95e6f37d3942d4ab681e2f2484f17bbf8489c332.tar.gz PrismLauncher-95e6f37d3942d4ab681e2f2484f17bbf8489c332.tar.bz2 PrismLauncher-95e6f37d3942d4ab681e2f2484f17bbf8489c332.zip |
NOISSUE force saving of any outstanding instance component state on exit
Diffstat (limited to 'api/logic/InstanceList.cpp')
-rw-r--r-- | api/logic/InstanceList.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/api/logic/InstanceList.cpp b/api/logic/InstanceList.cpp index dbc111fc..96251b60 100644 --- a/api/logic/InstanceList.cpp +++ b/api/logic/InstanceList.cpp @@ -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); |