[epiphany] adblock: Fix wrong assertion in filters_initialized_cb
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] adblock: Fix wrong assertion in filters_initialized_cb
- Date: Fri, 6 Sep 2019 17:54:09 +0000 (UTC)
commit 76f618718581bb3070be6bc89e029aba0604033f
Author: Adrian Perez de Castro <aperez igalia com>
Date: Fri Sep 6 13:06:55 2019 +0300
adblock: Fix wrong assertion in filters_initialized_cb
The assertion was checking the contrary of what it should have.
src/ephy-window.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 51b0edc8d..cd105beda 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -2239,7 +2239,8 @@ filters_initialized_cb (EphyFiltersManager *filters_manager,
GParamSpec *pspec,
EphyWindow *window)
{
- g_assert (!ephy_filters_manager_get_is_initialized (filters_manager));
+ /* This function is only ever invoked after initialization has completed. */
+ g_assert (ephy_filters_manager_get_is_initialized (filters_manager));
g_signal_handler_disconnect (filters_manager, window->filters_initialized_id);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]