summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2015-09-01 12:47:45 +0200
committerBastien Nocera <hadess@hadess.net>2015-09-01 12:47:45 +0200
commitbb97697bdc809d161ba82bcc161fc187359121b0 (patch)
treef7018eaefd2465fac77157ab528650d2b6febeff
parent0d82ce7fb1a561434f2c06131a626eefff74ba7f (diff)
downloadtotem-bb97697bdc809d161ba82bcc161fc187359121b0.tar.gz
grilo: Fix selection not working after visiting Channels
When visiting the Channels page, we'd create a filter model, but switching back to the Videos page, we wouldn't reset it. Harden the selection request checks to check whether we're on the Channels page (and at the root of it) before refusing selection. https://bugzilla.gnome.org/show_bug.cgi?id=754389
-rw-r--r--src/totem-grilo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/totem-grilo.c b/src/totem-grilo.c
index b16fd8712..938862e9b 100644
--- a/src/totem-grilo.c
+++ b/src/totem-grilo.c
@@ -1652,7 +1652,8 @@ selection_mode_requested (GdMainView *view,
/* Don't allow selections when at the root of the
* "Channels" view */
- if (self->priv->browser_filter_model != NULL) {
+ if (self->priv->current_page == TOTEM_GRILO_PAGE_CHANNELS &&
+ self->priv->browser_filter_model != NULL) {
g_object_get (self->priv->browser_filter_model,
"virtual-root", &root,
NULL);