Author: mir3x
Date: Wed Nov 25 19:56:13 2015
New Revision: 30763

URL: http://svn.gna.org/viewcvs/freeciv?rev=30763&view=rev
Log:
Fixed QComboBox in pregame page being cleared and sending singal about 
changing ruleset.
Reported by Jacob Nevins <jtn>

See bug #24108


Modified:
    branches/S2_5/client/gui-qt/fc_client.cpp

Modified: branches/S2_5/client/gui-qt/fc_client.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/client/gui-qt/fc_client.cpp?rev=30763&r1=30762&r2=30763&view=diff
==============================================================================
--- branches/S2_5/client/gui-qt/fc_client.cpp   (original)
+++ branches/S2_5/client/gui-qt/fc_client.cpp   Wed Nov 25 19:56:13 2015
@@ -865,7 +865,9 @@
 ****************************************************************************/
 void pregame_options::ruleset_change(int i)
 {
-  set_ruleset(cruleset->currentText().toLocal8Bit().data());
+  if (!cruleset->currentText().isEmpty()) {
+    set_ruleset(cruleset->currentText().toLocal8Bit().data());
+  }
 }
 
 /****************************************************************************


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

Reply via email to