Git: Fix default port for gerritoptionspage.cpp

We need to set the range before the value, otherwise we
end up using the default maximum of 99 when setting it.

Change-Id: I93de2cade3c2884dab64f04a52b2d3e3db98e1c4
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Stenger
2023-05-30 09:43:26 +02:00
parent 3be931d234
commit 78eb97fb54

View File

@@ -43,8 +43,8 @@ public:
curlChooser->setCommandVersionArguments({"-V"});
auto portSpinBox = new QSpinBox(this);
portSpinBox->setValue(p->server.port);
portSpinBox->setRange(1, 65535);
portSpinBox->setValue(p->server.port);
auto httpsCheckBox = new QCheckBox(Git::Tr::tr("HTTPS"));
httpsCheckBox->setChecked(p->https);