[totem/gnome-3-14] grilo: Fix selection not working after visiting Channels
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/gnome-3-14] grilo: Fix selection not working after visiting Channels
- Date: Tue, 1 Sep 2015 10:50:32 +0000 (UTC)
commit d4d45f2321b2310faf3fd79ba284a9a9228c44a2
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 a0c9027..a58483d 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]