--- a/QTfrontend/model/ammoSchemeModel.cpp Wed Jan 24 21:05:34 2018 +0100
+++ b/QTfrontend/model/ammoSchemeModel.cpp Wed Jan 24 22:20:10 2018 +0100
@@ -569,7 +569,7 @@
<< QVariant() // scriptparam 43
;
- QList<QVariant> construction;
+ QList<QVariant> construction;
construction
<< predefSchemesNames[10] // name 0
<< QVariant(false) // fortsmode 1
@@ -617,7 +617,7 @@
<< QVariant() // scriptparam 43
;
- QList<QVariant> hedgeeditor;
+ QList<QVariant> hedgeeditor;
hedgeeditor
<< predefSchemesNames[11] // name 0
<< QVariant(false) // fortsmode 1
@@ -664,9 +664,9 @@
<< QVariant(0) // world edge 42
<< QVariant() // scriptparam 43
;
-
-
-
+
+
+
schemes.append(defaultScheme);
schemes.append(proMode);
schemes.append(shoppa);
@@ -896,10 +896,12 @@
return;
}
+ beginResetModel();
+
cfg[cfg.size()-1] = cfg[cfg.size()-1].mid(1);
for(int i = 0; i < cfg.size(); ++i)
netScheme[i] = QVariant(cfg[i]);
- reset();
+ endResetModel();
}