QTfrontend/ui/widget/selectWeapon.cpp
changeset 10310 22f541fbde32
parent 10108 c68cf030eded
child 11046 47a8c19ecb60
--- a/QTfrontend/ui/widget/selectWeapon.cpp	Sun Jun 15 13:42:34 2014 +0200
+++ b/QTfrontend/ui/widget/selectWeapon.cpp	Mon Jun 16 00:24:26 2014 +0400
@@ -322,12 +322,12 @@
     if(wconf->contains(curWeaponsName))
     {
         QString ammo = getWeaponsString(curWeaponsName);
-        QString newName = tr("copy of") + " " + curWeaponsName;
+        QString newName = tr("copy of %1").arg(curWeaponsName);
         if(wconf->contains(newName))
         {
             //name already used -> look for an appropriate name:
             int i=2;
-            while(wconf->contains(newName = tr("copy of") + " " + curWeaponsName+QString::number(i++))) ;
+            while(wconf->contains(newName = tr("copy of %1").arg(curWeaponsName+QString::number(i++))));
         }
         setWeaponsName(newName);
         setWeapons(ammo);