Author: mir3x
Date: Wed Dec  2 14:07:15 2015
New Revision: 30843

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

See patch #6641


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

Modified: branches/S2_6/client/gui-qt/dialogs.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-qt/dialogs.cpp?rev=30843&r1=30842&r2=30843&view=diff
==============================================================================
--- branches/S2_6/client/gui-qt/dialogs.cpp     (original)
+++ branches/S2_6/client/gui-qt/dialogs.cpp     Wed Dec  2 14:07:15 2015
@@ -258,6 +258,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