1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 17:52:10 +02:00

Preferences: Use default search engine by default

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
Juraj Oravec 2023-06-11 22:32:02 +02:00
parent c90d9ee306
commit 4d0f0040be
Signed by: SGOrava
GPG Key ID: 13660A3F1D9F093B

View File

@ -267,7 +267,7 @@ Preferences::Preferences(BrowserWindow* window)
bool searchFromAB = settings.value("SearchFromAddressBar", true).toBool(); bool searchFromAB = settings.value("SearchFromAddressBar", true).toBool();
ui->searchFromAddressBar->setChecked(searchFromAB); ui->searchFromAddressBar->setChecked(searchFromAB);
ui->searchWithDefaultEngine->setEnabled(searchFromAB); ui->searchWithDefaultEngine->setEnabled(searchFromAB);
ui->searchWithDefaultEngine->setChecked(settings.value("SearchWithDefaultEngine", false).toBool()); ui->searchWithDefaultEngine->setChecked(settings.value("SearchWithDefaultEngine", true).toBool());
ui->showABSearchSuggestions->setEnabled(searchFromAB); ui->showABSearchSuggestions->setEnabled(searchFromAB);
ui->showABSearchSuggestions->setChecked(settings.value("showSearchSuggestions", true).toBool()); ui->showABSearchSuggestions->setChecked(settings.value("showSearchSuggestions", true).toBool());
connect(ui->searchFromAddressBar, &QAbstractButton::toggled, this, &Preferences::searchFromAddressBarChanged); connect(ui->searchFromAddressBar, &QAbstractButton::toggled, this, &Preferences::searchFromAddressBarChanged);