Author: mir3x
Date: Tue Feb 14 09:14:45 2017
New Revision: 35032

URL: http://svn.gna.org/viewcvs/freeciv?rev=35032&view=rev
Log:
Qt client - focus might be set incorrectly to map in some cases

See gna bug #25505


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

Modified: trunk/client/gui-qt/gui_main.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-qt/gui_main.cpp?rev=35032&r1=35031&r2=35032&view=diff
==============================================================================
--- trunk/client/gui-qt/gui_main.cpp    (original)
+++ trunk/client/gui-qt/gui_main.cpp    Tue Feb 14 09:14:45 2017
@@ -323,7 +323,7 @@
 ****************************************************************************/
 void qtg_real_focus_units_changed(void)
 {
-  if (gui()->unit_sel != NULL) {
+  if (gui()->unit_sel != nullptr && gui()->unit_sel->isVisible()) {
     gui()->unit_sel->update_units();
   }
 }


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

Reply via email to