[epiphany/mcatanzaro/#1389: 3/3] Fix search engine preferences
- From: Jan-Michael Brummer <jbrummer src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/mcatanzaro/#1389: 3/3] Fix search engine preferences
- Date: Fri, 20 Nov 2020 22:20:16 +0000 (UTC)
commit ac39fec53731b5e719f1108e43b800440ac5f050
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Wed Nov 18 14:34:54 2020 -0600
Fix search engine preferences
It's not possible to save a new search engine due to a copy/paste error.
We accidentally update the validity of the name field when updating the
URL, so the URL is always invalid and always discarded.
Fixes #1389
src/preferences/ephy-search-engine-listbox.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/preferences/ephy-search-engine-listbox.c b/src/preferences/ephy-search-engine-listbox.c
index 8442e2bb5..3c5e2303f 100644
--- a/src/preferences/ephy-search-engine-listbox.c
+++ b/src/preferences/ephy-search-engine-listbox.c
@@ -261,10 +261,10 @@ on_address_entry_text_changed_cb (GObject *instance,
/* Address in invalid. */
if (!validate_search_engine_address (gtk_entry_get_text (address_entry), &validation_message)) {
set_entry_as_invalid (address_entry, validation_message);
- row_data->invalid_fields |= SEARCH_ENGINE_NAME_FIELD;
+ row_data->invalid_fields |= SEARCH_ENGINE_ADDRESS_FIELD;
} else { /* Address in valid. */
set_entry_as_valid (address_entry);
- row_data->invalid_fields &= ~SEARCH_ENGINE_NAME_FIELD;
+ row_data->invalid_fields &= ~SEARCH_ENGINE_ADDRESS_FIELD;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]