[totem] grilo: Fix selection not working after visiting Channels
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] grilo: Fix selection not working after visiting Channels
- Date: Tue, 1 Sep 2015 10:49:59 +0000 (UTC)
commit bb97697bdc809d161ba82bcc161fc187359121b0
Author: Bastien Nocera <hadess hadess net>
Date: Tue Sep 1 12:47:45 2015 +0200
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
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 b16fd87..938862e 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]