QTfrontend/ui/widget/gamecfgwidget.cpp
changeset 9904 ef3321c86912
parent 9902 eb8e8b09b2f0
child 9998 736015b847e3
equal deleted inserted replaced
9902:eb8e8b09b2f0 9904:ef3321c86912
   568 
   568 
   569     int size = GameSchemes->model()->columnCount();
   569     int size = GameSchemes->model()->columnCount();
   570     for(int i = 0; i < size; ++i)
   570     for(int i = 0; i < size; ++i)
   571         sl << schemeData(i).toString();
   571         sl << schemeData(i).toString();
   572 
   572 
   573     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.
   573     if (sl.size() >= 42)
       
   574     {
       
   575         sl[42].prepend('!');
       
   576         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.
       
   577     }
   574 
   578 
   575     if (isEnabled() && bindEntries->isEnabled() && bindEntries->isChecked())
   579     if (isEnabled() && bindEntries->isEnabled() && bindEntries->isChecked())
   576     {
   580     {
   577         QString schemeName = GameSchemes->itemText(index);
   581         QString schemeName = GameSchemes->itemText(index);
   578         for (int i = 0; i < WeaponsName->count(); i++)
   582         for (int i = 0; i < WeaponsName->count(); i++)