Author: mir3x
Date: Sat Dec 26 12:15:25 2015
New Revision: 31212

URL: http://svn.gna.org/viewcvs/freeciv?rev=31212&view=rev
Log:
Fixed selection widget not showing one unit in allied.

See bug #24224


Modified:
    trunk/client/gui-qt/dialogs.cpp

Modified: trunk/client/gui-qt/dialogs.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-qt/dialogs.cpp?rev=31212&r1=31211&r2=31212&view=diff
==============================================================================
--- trunk/client/gui-qt/dialogs.cpp     (original)
+++ trunk/client/gui-qt/dialogs.cpp     Sat Dec 26 12:15:25 2015
@@ -884,7 +884,8 @@
 **************************************************************************/
 void unit_select_dialog_popup(struct tile *ptile)
 {
-  if(ptile != NULL && unit_list_size(ptile->units) > 1){
+  if(ptile != NULL && (unit_list_size(ptile->units) > 1
+      || (unit_list_size(ptile->units) == 1 && tile_city(ptile)))) {
     gui()->toggle_unit_sel_widget(ptile);
   }
 }


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

Reply via email to