# HG changeset patch # User unc0rr # Date 1388604504 -14400 # Node ID ef3321c86912cfada569efe819b247008640e660 # Parent eb8e8b09b2f0ab76c510623d4574380d6bd3eb82 Prepend '!' to 42nd scheme parameter in network traffic diff -r eb8e8b09b2f0 -r ef3321c86912 QTfrontend/model/ammoSchemeModel.cpp --- a/QTfrontend/model/ammoSchemeModel.cpp Wed Jan 01 14:16:01 2014 +0400 +++ b/QTfrontend/model/ammoSchemeModel.cpp Wed Jan 01 23:28:24 2014 +0400 @@ -805,6 +805,8 @@ return; } + cfg[42] = cfg[42].mid(1); + for(int i = 0; i < cfg.size(); ++i) netScheme[i] = QVariant(cfg[i]); diff -r eb8e8b09b2f0 -r ef3321c86912 QTfrontend/ui/widget/gamecfgwidget.cpp --- a/QTfrontend/ui/widget/gamecfgwidget.cpp Wed Jan 01 14:16:01 2014 +0400 +++ b/QTfrontend/ui/widget/gamecfgwidget.cpp Wed Jan 01 23:28:24 2014 +0400 @@ -570,7 +570,11 @@ for(int i = 0; i < size; ++i) sl << schemeData(i).toString(); - if (sl.size()!=1) emit paramChanged("SCHEME", sl); // this is a stupid hack for the fact that SCHEME is being sent once, empty. Still need to find out why. + if (sl.size() >= 42) + { + sl[42].prepend('!'); + emit paramChanged("SCHEME", sl); // this is a stupid hack for the fact that SCHEME is being sent once, empty. Still need to find out why. + } if (isEnabled() && bindEntries->isEnabled() && bindEntries->isChecked()) {