Add missing beginWriteArray in scheme model code
authorWuzzy <Wuzzy2@mail.ru>
Thu, 08 Feb 2018 09:38:35 +0100
changeset 12925 7a54bda7b6d1
parent 12924 48b9f15859b0
child 12926 502d18361c7e
Add missing beginWriteArray in scheme model code
ChangeLog.txt
QTfrontend/model/ammoSchemeModel.cpp
--- a/ChangeLog.txt	Thu Feb 08 09:26:24 2018 +0100
+++ b/ChangeLog.txt	Thu Feb 08 09:38:35 2018 +0100
@@ -7,6 +7,9 @@
  * Fix time box being usable in Sudden Death with 0 health decrease
  * Fix chat input key being sometimes registered twice
 
+Frontend:
+ + Schemes are now stored in separate files under Schemes
+
 Content:
  + New flag: uk_scotland
  + New voice: Default_pl (Polish)
--- a/QTfrontend/model/ammoSchemeModel.cpp	Thu Feb 08 09:26:24 2018 +0100
+++ b/QTfrontend/model/ammoSchemeModel.cpp	Thu Feb 08 09:38:35 2018 +0100
@@ -855,6 +855,7 @@
 
 void AmmoSchemeModel::Save()
 {
+    fileConfig.beginWriteArray("schemes");
     for (int i = 0; i < schemes.size() - numberOfDefaultSchemes; ++i)
     {
         QList<QVariant> scheme = schemes[i + numberOfDefaultSchemes];