Gerrit: Store full user details in server

This is needed for REST, which never returns user name (only account id,
full name and email)

Change-Id: Ia4e3cca15a80a26b26f5f69edfc83a18e4c1fa1b
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Orgad Shaneh
2017-02-25 22:24:45 +02:00
committed by Orgad Shaneh
parent bae0f1406e
commit 0995cf22ab
6 changed files with 32 additions and 20 deletions

View File

@@ -128,7 +128,7 @@ GerritParameters GerritOptionsWidget::parameters() const
void GerritOptionsWidget::setParameters(const GerritParameters &p)
{
m_hostLineEdit->setText(p.server.host);
m_userLineEdit->setText(p.server.user);
m_userLineEdit->setText(p.server.user.userName);
m_sshChooser->setPath(p.ssh);
m_curlChooser->setPath(p.curl);
m_portSpinBox->setValue(p.server.port);