Author: sveinung
Date: Wed Mar  4 11:57:39 2015
New Revision: 28401

URL: http://svn.gna.org/viewcvs/freeciv?rev=28401&view=rev
Log:
Xaw client: Disable the correct action selection button when unable to move.

The code that is supposed to set the keep moving action selection button to
insensitive when a regular move / attack is impossible referred to the
capture units button in stead. This caused the keep moving button to always
be sensitive and the capture units button to be insensitive in situations
were capture units is possible.

Fix the reference so it refers to the keep moving action selection button.

See bug #23344

Modified:
    trunk/client/gui-xaw/action_dialog.c

Modified: trunk/client/gui-xaw/action_dialog.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-xaw/action_dialog.c?rev=28401&r1=28400&r2=28401&view=diff
==============================================================================
--- trunk/client/gui-xaw/action_dialog.c        (original)
+++ trunk/client/gui-xaw/action_dialog.c        Wed Mar  4 11:57:39 2015
@@ -989,7 +989,7 @@
   if (!(unit_can_move_to_tile(actor_unit, target_tile, FALSE)
       || (is_military_unit(actor_unit) || is_attack_unit(actor_unit))
       || (can_unit_bombard(actor_unit) && !is_ocean_tile(target_tile)))) {
-    XtSetSensitive(XtNameToWidget(diplomat_dialog, "*button14"), FALSE);
+    XtSetSensitive(XtNameToWidget(diplomat_dialog, "*button15"), FALSE);
   }
 
   astr_free(&text);


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

Reply via email to