Author: mir3x
Date: Tue Mar  3 19:19:46 2015
New Revision: 28389

URL: http://svn.gna.org/viewcvs/freeciv?rev=28389&view=rev
Log:
Fixed loading ruleset in qt-clinet, causing crash.
Reported by anonymous.

See bug #23322


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

Modified: trunk/client/gui-qt/menu.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-qt/menu.cpp?rev=28389&r1=28388&r2=28389&view=diff
==============================================================================
--- trunk/client/gui-qt/menu.cpp        (original)
+++ trunk/client/gui-qt/menu.cpp        Tue Mar  3 19:19:46 2015
@@ -71,9 +71,10 @@
 **************************************************************************/
 void real_menus_update(void)
 {
-  /* PORTME */
-  gui()->menu_bar->menus_sensitive();
-  gov_menu::update_all();
+  if (C_S_RUNNING == client_state()) {
+    gui()->menu_bar->menus_sensitive();
+    gov_menu::update_all();
+  }
 }
 
 /****************************************************************************


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

Reply via email to