Author: mir3x
Date: Fri Oct  7 09:04:42 2016
New Revision: 34031

URL: http://svn.gna.org/viewcvs/freeciv?rev=34031&view=rev
Log:
Qt client - fixed crash when changing default font from MAIN_PAGE

See bug #25147

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

Modified: trunk/client/gui-qt/pages.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-qt/pages.cpp?rev=34031&r1=34030&r2=34031&view=diff
==============================================================================
--- trunk/client/gui-qt/pages.cpp       (original)
+++ trunk/client/gui-qt/pages.cpp       Fri Oct  7 09:04:42 2016
@@ -2019,6 +2019,10 @@
   struct improvement_entry building_entries[B_LAST];
   struct unit_entry unit_entries[U_LAST];
 
+  if (current_page() != PAGE_GAME) {
+    return;
+  }
+
   if (NULL != client.conn.playing) {
     max = get_player_bonus(client.conn.playing, EFT_MAX_RATES);
   } else {


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

Reply via email to