forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user