From 6ffae36242b9b21166ad586ce9f1d1788f257e70 Mon Sep 17 00:00:00 2001 From: Phenom Date: Wed, 10 May 2017 19:06:03 +0200 Subject: [PATCH] Fix Start page password focus. And readd "log in" button. --- retroshare-gui/src/gui/StartDialog.cpp | 7 ++++-- retroshare-gui/src/gui/StartDialog.ui | 35 ++++++++++++++++++-------- 2 files changed, 29 insertions(+), 13 deletions(-) diff --git a/retroshare-gui/src/gui/StartDialog.cpp b/retroshare-gui/src/gui/StartDialog.cpp index 6b100d319..2a25eff77 100644 --- a/retroshare-gui/src/gui/StartDialog.cpp +++ b/retroshare-gui/src/gui/StartDialog.cpp @@ -73,13 +73,16 @@ StartDialog::StartDialog(QWidget *parent) } } - QObject::connect(ui.loadName,SIGNAL(currentIndexChanged(int)),this,SLOT(updateSelectedProfile(int))) ; - QObject::connect(ui.password_input,SIGNAL(returnPressed()),this,SLOT(loadPerson())) ; + QObject::connect(ui.loadName,SIGNAL(currentIndexChanged(int)),this,SLOT(updateSelectedProfile(int))) ; + QObject::connect(ui.password_input,SIGNAL(returnPressed()),this,SLOT(loadPerson())) ; + QObject::connect(ui.loadButton, SIGNAL(clicked()), this, SLOT(loadPerson())); if (pidx > 0) { ui.loadName->setCurrentIndex(pidx); } + + ui.password_input->setFocus(); } void StartDialog::updateSelectedProfile(int) diff --git a/retroshare-gui/src/gui/StartDialog.ui b/retroshare-gui/src/gui/StartDialog.ui index fb1554a32..0681835e6 100644 --- a/retroshare-gui/src/gui/StartDialog.ui +++ b/retroshare-gui/src/gui/StartDialog.ui @@ -17,7 +17,7 @@ :/images/logo/logo_32.png:/images/logo/logo_32.png - + 0 @@ -31,7 +31,7 @@ 0 - + 0 @@ -42,9 +42,9 @@ 0 - + - + Qt::Horizontal @@ -57,7 +57,7 @@ - + 0 @@ -115,7 +115,7 @@ - + Qt::Horizontal @@ -129,8 +129,8 @@ - - + + true @@ -143,9 +143,9 @@ - + - + Profile - Location: @@ -155,7 +155,7 @@ - + Password: @@ -181,6 +181,19 @@ + + + + Log In + + + true + + + false + + +