Author: mir3x Date: Wed Dec 2 14:07:06 2015 New Revision: 30842 URL: http://svn.gna.org/viewcvs/freeciv?rev=30842&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_5/client/gui-qt/dialogs.cpp Modified: branches/S2_5/client/gui-qt/dialogs.cpp URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_5/client/gui-qt/dialogs.cpp?rev=30842&r1=30841&r2=30842&view=diff ============================================================================== --- branches/S2_5/client/gui-qt/dialogs.cpp (original) +++ branches/S2_5/client/gui-qt/dialogs.cpp Wed Dec 2 14:07:06 2015 @@ -215,6 +215,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