Author: mir3x
Date: Tue Feb 28 07:31:23 2017
New Revision: 35063

URL: http://svn.gna.org/viewcvs/freeciv?rev=35063&view=rev
Log:
Qt client - added connect to server on enter pressed in linedit in pregame

See gna patch #8118


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

Modified: branches/S2_6/client/gui-qt/pages.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-qt/pages.cpp?rev=35063&r1=35062&r2=35063&view=diff
==============================================================================
--- branches/S2_6/client/gui-qt/pages.cpp       (original)
+++ branches/S2_6/client/gui-qt/pages.cpp       Tue Feb 28 07:31:23 2017
@@ -402,10 +402,12 @@
   network_button = new QPushButton(_("Connect"));
   page_network_grid_layout->addWidget(network_button, 5, 5, 1, 1);
   connect(network_button, SIGNAL(clicked()), this, SLOT(slot_connect()));
+  connect(connect_login_edit, SIGNAL(returnPressed()),
+          this, SLOT(slot_connect()));
   connect(connect_password_edit, SIGNAL(returnPressed()),
-          network_button, SIGNAL(clicked()));
+          this, SLOT(slot_connect()));
   connect(connect_confirm_password_edit, SIGNAL(returnPressed()),
-          network_button, SIGNAL(clicked()));
+          this, SLOT(slot_connect()));
 
   connect_lan->setLayout(page_network_lan_layout);
   connect_metaserver->setLayout(page_network_wan_layout);


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

Reply via email to