aboutsummaryrefslogtreecommitdiff
path: root/src/dialogs
diff options
context:
space:
mode:
authorMike Skec <skec@protonmail.ch>2021-02-24 08:17:05 +1100
committerFelix Queißner <felix@ib-queissner.de>2021-02-23 22:24:59 +0100
commit7261fc4bbf05034deb3e502128a6852c788aaa69 (patch)
tree8bc0efe909aa28190d4a3591c285677ba103054a /src/dialogs
parentaafd9eb8995191b3cd836814381a28c5e1cd6a3c (diff)
downloadkristall-7261fc4bbf05034deb3e502128a6852c788aaa69.tar.gz
SettingsDialog: search engine combobox fix
Custom search engines were not being displayed in the combobox after closing/reopening the settings dialog, it was defaulting to the default option. This fixes that. Also adds the Veronica gopher search engine to list of default options
Diffstat (limited to 'src/dialogs')
-rw-r--r--src/dialogs/settingsdialog.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dialogs/settingsdialog.cpp b/src/dialogs/settingsdialog.cpp
index e622711..e9c0e45 100644
--- a/src/dialogs/settingsdialog.cpp
+++ b/src/dialogs/settingsdialog.cpp
@@ -257,11 +257,13 @@ void SettingsDialog::setOptions(const GenericSettings &options)
this->ui->start_page->setText(this->current_options.start_page);
this->ui->search_engine->clear();
- this->ui->search_engine->setEditText(this->current_options.search_engine);
+ QString search = this->current_options.search_engine;
this->ui->search_engine->lineEdit()->setPlaceholderText("URL with '%1' in place of query");
this->ui->search_engine->addItem("gemini://geminispace.info/search?%1");
this->ui->search_engine->addItem("gemini://gus.guru/search?%1");
this->ui->search_engine->addItem("gemini://houston.coder.town/search?%1");
+ this->ui->search_engine->addItem("gopher://gopher.floodgap.com:70/7/v2/vs?%1");
+ this->ui->search_engine->setCurrentText(search);
if(this->current_options.gophermap_display == GenericSettings::PlainText) {
this->ui->gophermap_text->setChecked(true);