Author: mir3x
Date: Tue Mar  3 19:19:28 2015
New Revision: 28388

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

See bug #23322


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

Modified: branches/S2_6/client/gui-qt/menu.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-qt/menu.cpp?rev=28388&r1=28387&r2=28388&view=diff
==============================================================================
--- branches/S2_6/client/gui-qt/menu.cpp        (original)
+++ branches/S2_6/client/gui-qt/menu.cpp        Tue Mar  3 19:19:28 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