Author: mir3x
Date: Wed Dec  2 14:07:21 2015
New Revision: 30844

URL: http://svn.gna.org/viewcvs/freeciv?rev=30844&view=rev
Log:
Pressing enter on leader name line edit, will choose that nation. 
(in pregame, when choosing nations) 

See patch #6641


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=30844&r1=30843&r2=30844&view=diff
==============================================================================
--- trunk/client/gui-qt/dialogs.cpp     (original)
+++ trunk/client/gui-qt/dialogs.cpp     Wed Dec  2 14:07:21 2015
@@ -286,6 +286,8 @@
                               const QItemSelection &)));
   connect(leader_name, SIGNAL(currentIndexChanged(int)),
           SLOT(leader_selected(int)));
+  connect(leader_name->lineEdit(), SIGNAL(returnPressed()),
+          SLOT(ok_pressed()));
   connect(qnation_set, SIGNAL(currentIndexChanged(int)),
           SLOT(nationset_changed(int)));
   connect(nation_tabs->selectionModel(),


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

Reply via email to