Author: mir3x
Date: Sun Nov  6 22:12:46 2016
New Revision: 34414

URL: http://svn.gna.org/viewcvs/freeciv?rev=34414&view=rev
Log:
Qt client - added information about number of selected units

See patch #7935

Modified:
    branches/S2_6/client/gui-qt/hudwidget.cpp

Modified: branches/S2_6/client/gui-qt/hudwidget.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-qt/hudwidget.cpp?rev=34414&r1=34413&r2=34414&view=diff
==============================================================================
--- branches/S2_6/client/gui-qt/hudwidget.cpp   (original)
+++ branches/S2_6/client/gui-qt/hudwidget.cpp   Sun Nov  6 22:12:46 2016
@@ -505,7 +505,10 @@
                 QString::number(unit_type_get(punit)->hp));
   num = unit_list_size(punit->tile->units);
   snum = QString::number(unit_list_size(punit->tile->units) - 1);
-  if (num > 2) {
+  if (unit_list_size(get_units_in_focus()) > 1) {
+    text_str = text_str + QString(_(" (Selected %1 units)"))
+               .arg(unit_list_size(get_units_in_focus()));
+  } else if (num > 2) {
     text_str = text_str + QString(_(" +%1 units"))
                                   .arg(snum.toLocal8Bit().data());
   } else if (num == 2) {


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to