Author: mir3x
Date: Sun Aug  7 17:32:18 2016
New Revision: 33486

URL: http://svn.gna.org/viewcvs/freeciv?rev=33486&view=rev
Log:
Qt client - dont set default leader name to player name, if picking nation for 
not self.

See bug #24906



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

Modified: trunk/client/gui-qt/dialogs.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-qt/dialogs.cpp?rev=33486&r1=33485&r2=33486&view=diff
==============================================================================
--- trunk/client/gui-qt/dialogs.cpp     (original)
+++ trunk/client/gui-qt/dialogs.cpp     Sun Aug  7 17:32:18 2016
@@ -516,7 +516,9 @@
   helptext_nation(buf, sizeof(buf), nation_by_number(selected_nation), NULL);
   description->setText(buf);
   leader_name->clear();
-  leader_name->addItem(client.conn.playing->name, true);
+  if (client.conn.playing == tplayer) {
+    leader_name->addItem(client.conn.playing->name, true);
+  }
   nation_leader_list_iterate(nation_leaders(nation_by_number
                                             (selected_nation)), pleader) {
     str = QString::fromUtf8(nation_leader_name(pleader));


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

Reply via email to