Commit 51d3611c authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Do not show hint about Advanced Settings if they are not available

This removes the hint about the Advanced Settings button from the page's
subtitle if the Advanced Settings button is hidden.

GnuPG-bug-id: 5832
parent effae89a
......@@ -4,9 +4,6 @@
<property name="title" >
<string comment="@title" >Enter Details</string>
</property>
<property name="subTitle" >
<string>Please enter your personal details below. If you want more control over the parameters, click on the Advanced Settings button.</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout" >
<item>
<layout class="QGridLayout" name="gridLayout" >
......
......@@ -783,6 +783,14 @@ public:
: WizardPage(p), dialog(this), ui()
{
ui.setupUi(this);
Settings settings;
if (settings.hideAdvanced()) {
setSubTitle(i18n("Please enter your personal details below."));
} else {
setSubTitle(i18n("Please enter your personal details below. If you want more control over the parameters, click on the Advanced Settings button."));
}
ui.advancedPB->setVisible(!settings.hideAdvanced());
ui.resultLE->setFocusPolicy(Qt::NoFocus);
// set errorLB to have a fixed height of two lines:
......@@ -1552,7 +1560,6 @@ void EnterDetailsPage::updateForm()
if (ui.emailLE->text().isEmpty() && settings.prefillEmail()) {
ui.emailLE->setText(userEmailAddress());
}
ui.advancedPB->setVisible(!settings.hideAdvanced());
set_tab_order(widgets);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment