Skip to content

Commit

Permalink
Fix tab order in settings page
Browse files Browse the repository at this point in the history
The network settings are now tab-selected before the about button.

Fixes: #11782
  • Loading branch information
erikjv authored and TheOneRing committed Aug 30, 2024
1 parent ac30934 commit d57c51b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/gui/generalsettings.ui
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,11 @@
</property>
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
<widget class="NetworkSettings" name="widget" native="true"/>
<widget class="NetworkSettings" name="widget" native="true">
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
</widget>
</item>
</layout>
</widget>
Expand Down Expand Up @@ -269,6 +273,7 @@
<tabstop>moveToTrashCheckBox</tabstop>
<tabstop>ignoredFilesButton</tabstop>
<tabstop>logSettingsButton</tabstop>
<tabstop>widget</tabstop>
<tabstop>scrollArea</tabstop>
<tabstop>about_pushButton</tabstop>
</tabstops>
Expand Down
2 changes: 2 additions & 0 deletions src/gui/networksettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ NetworkSettings::NetworkSettings(QWidget *parent)
{
_ui->setupUi(this);

setFocusProxy(_ui->pauseSyncWhenMeteredCheckbox);

_ui->hostLineEdit->setPlaceholderText(tr("Hostname of proxy server"));
_ui->hostLineEdit->setAccessibleName(tr("Hostname of proxy server"));
_ui->userLineEdit->setPlaceholderText(tr("Username for proxy server"));
Expand Down

0 comments on commit d57c51b

Please sign in to comment.