Shorten KeePassHTTP checkbox description and only enable settings when it's checked

This commit is contained in:
Janek Bevendorff 2017-02-24 16:22:40 +01:00
parent 5e664e3a06
commit 492e320628
No known key found for this signature in database
GPG Key ID: CFEC2F6850BFFA53
2 changed files with 7 additions and 2 deletions

View File

@ -30,6 +30,9 @@ OptionDialog::OptionDialog(QWidget *parent) :
m_ui->warningWidget->showMessage(tr("The following options can be dangerous!\nChange them only if you know what you are doing."), MessageWidget::Warning);
m_ui->warningWidget->setIcon(FilePath::instance()->icon("status", "dialog-warning"));
m_ui->warningWidget->setCloseButtonVisible(false);
m_ui->tabWidget->setEnabled(m_ui->enableHttpServer->isChecked());
connect(m_ui->enableHttpServer, SIGNAL(toggled(bool)), m_ui->tabWidget, SLOT(setEnabled(bool)));
}
OptionDialog::~OptionDialog()

View File

@ -28,9 +28,11 @@
</property>
<item>
<widget class="QCheckBox" name="enableHttpServer">
<property name="toolTip">
<string>This is required for accessing your databases from ChromeIPass or PassIFox</string>
</property>
<property name="text">
<string>Enable KeepassXC HTTP protocol
This is required for accessing your databases from ChromeIPass or PassIFox</string>
<string>Enable KeePassHTTP server</string>
</property>
</widget>
</item>