Fix advanced HTTP settings (close #34)

This commit is contained in:
Josef Vitu 2016-10-28 15:25:57 +02:00
parent 2e9b42688f
commit 8f3ffdcc2a
No known key found for this signature in database
GPG Key ID: 9D0AA5BF9EB9D956
3 changed files with 3 additions and 5 deletions

View File

@ -23,10 +23,6 @@
#include "core/Config.h"
#include "core/Translator.h"
#include "http/OptionDialog.h"
#include "http/HttpSettings.h"
class SettingsWidget::ExtraPage
{
public:

View File

@ -103,7 +103,7 @@ bool HttpSettings::alwaysAllowUpdate()
void HttpSettings::setAlwaysAllowUpdate(bool alwaysAllowUpdate)
{
config()->set("Http/AlwaysAllowAccess", alwaysAllowUpdate);
config()->set("Http/AlwaysAllowUpdate", alwaysAllowUpdate);
}
bool HttpSettings::searchInAllDatabases()

View File

@ -57,6 +57,7 @@ void OptionDialog::loadSettings()
ui->alwaysAllowAccess->setChecked(settings.alwaysAllowAccess());
ui->alwaysAllowUpdate->setChecked(settings.alwaysAllowUpdate());
ui->searchInAllDatabases->setChecked(settings.searchInAllDatabases());
ui->supportKphFields->setChecked(settings.supportKphFields());
}
void OptionDialog::saveSettings()
@ -85,4 +86,5 @@ void OptionDialog::saveSettings()
settings.setAlwaysAllowAccess(ui->alwaysAllowAccess->isChecked());
settings.setAlwaysAllowUpdate(ui->alwaysAllowUpdate->isChecked());
settings.setSearchInAllDatabases(ui->searchInAllDatabases->isChecked());
settings.setSupportKphFields(ui->supportKphFields->isChecked());
}