From 492e32062878ad1ab05e049b7e952f42487d3f39 Mon Sep 17 00:00:00 2001 From: Janek Bevendorff Date: Fri, 24 Feb 2017 16:22:40 +0100 Subject: [PATCH] Shorten KeePassHTTP checkbox description and only enable settings when it's checked --- src/http/OptionDialog.cpp | 3 +++ src/http/OptionDialog.ui | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/http/OptionDialog.cpp b/src/http/OptionDialog.cpp index a82e2c77..fd30f874 100644 --- a/src/http/OptionDialog.cpp +++ b/src/http/OptionDialog.cpp @@ -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() diff --git a/src/http/OptionDialog.ui b/src/http/OptionDialog.ui index f3171733..e78199c0 100644 --- a/src/http/OptionDialog.ui +++ b/src/http/OptionDialog.ui @@ -28,9 +28,11 @@ + + This is required for accessing your databases from ChromeIPass or PassIFox + - Enable KeepassXC HTTP protocol -This is required for accessing your databases from ChromeIPass or PassIFox + Enable KeePassHTTP server