[epiphany/mcatanzaro/#1389] Fix search engine preferences
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/mcatanzaro/#1389] Fix search engine preferences
- Date: Wed, 18 Nov 2020 20:36:14 +0000 (UTC)
commit ec5ce00c1d989edb42987856c29a7f2ffc6e2362
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]