diff options
author | Bastien Nocera <hadess@hadess.net> | 2022-05-03 17:09:22 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2022-05-03 17:15:17 +0200 |
commit | 0f1022cff10589c7e2c6e355f48166b34e11a5e3 (patch) | |
tree | 4b82cba85551e5b0c3c61acc4133998abe663d55 /src/totem-grilo.c | |
parent | d0bcfc298c2c692750ee0cb2b22eeae34ced2fe0 (diff) | |
download | totem-0f1022cff10589c7e2c6e355f48166b34e11a5e3.tar.gz |
grilo: Fix crash when scrolling for more content in some cases
When popping down the search entry, and scrolling down to activate the
"load content" action, we would try and load more search results but we
never really started a search, leading to a crash.
Make sure that a search is only considered to be started when the search
entry has been activated.
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2079657
Diffstat (limited to 'src/totem-grilo.c')
-rw-r--r-- | src/totem-grilo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/totem-grilo.c b/src/totem-grilo.c index f07cf8d7a..981e07d72 100644 --- a/src/totem-grilo.c +++ b/src/totem-grilo.c @@ -1966,6 +1966,8 @@ search_mode_changed (GObject *gobject, g_assert_not_reached (); } g_clear_pointer (&self->last_page, g_free); + + self->in_search = search_mode; } else { GtkTreeModel *model; const char *id = NULL; @@ -2001,7 +2003,6 @@ search_mode_changed (GObject *gobject, gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (self->search_hidden_button), TRUE); } - self->in_search = search_mode; } typedef struct { |