# HG changeset patch
# User Wuzzy <Wuzzy2@mail.ru>
# Date 1578716101 -3600
# Node ID 3b0b6ce7630325487552bcec88a1c0bc8521761c
# Parent  d122b65bdf6f9e92cb6afa08f9c7fd0c9370f4bc
Fix weapon schemes sometimes not being saved properly

diff -r d122b65bdf6f -r 3b0b6ce76303 ChangeLog.txt
--- a/ChangeLog.txt	Sat Jan 11 01:06:41 2020 +0300
+++ b/ChangeLog.txt	Sat Jan 11 05:15:01 2020 +0100
@@ -11,6 +11,7 @@
  * A Space Adventure: The First Stop: Fix broken victory condition when eliminating minions
  * A Space Adventure: Killing the Specialists: Don't award player health if enemy hurts itself
  * Fix hog getting stuck when opening parachute right after a shoryuken digging through land
+ * Fix weapon schemes sometimes not being saved properly
 
 Lua:
  + Add RopeKnocking library
diff -r d122b65bdf6f -r 3b0b6ce76303 QTfrontend/ui/widget/selectWeapon.cpp
--- a/QTfrontend/ui/widget/selectWeapon.cpp	Sat Jan 11 01:06:41 2020 +0300
+++ b/QTfrontend/ui/widget/selectWeapon.cpp	Sat Jan 11 05:15:01 2020 +0100
@@ -331,6 +331,7 @@
         file.close();
     }
     emit weaponsEdited(curWeaponsName, m_name->text(), stateFull);
+    curWeaponsName = m_name->text();
 }
 
 int SelWeaponWidget::operator [] (unsigned int weaponIndex) const