Author: mir3x
Date: Sat Dec 26 12:15:19 2015
New Revision: 31211

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

See bug #24224


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

Modified: branches/S2_6/client/gui-qt/dialogs.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-qt/dialogs.cpp?rev=31211&r1=31210&r2=31211&view=diff
==============================================================================
--- branches/S2_6/client/gui-qt/dialogs.cpp     (original)
+++ branches/S2_6/client/gui-qt/dialogs.cpp     Sat Dec 26 12:15:19 2015
@@ -856,7 +856,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