[rhythmbox] grilo: don't crash on browser selection if there's no search bar (bug #659261)
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] grilo: don't crash on browser selection if there's no search bar (bug #659261)
- Date: Fri, 16 Sep 2011 21:47:34 +0000 (UTC)
commit 3d89532b62e88a0f17fe9684097845e61f05cd46
Author: Jean Schurger <jean schurger org>
Date: Sat Sep 17 07:46:43 2011 +1000
grilo: don't crash on browser selection if there's no search bar (bug #659261)
plugins/grilo/rb-grilo-source.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/plugins/grilo/rb-grilo-source.c b/plugins/grilo/rb-grilo-source.c
index cc897b4..62e7c67 100644
--- a/plugins/grilo/rb-grilo-source.c
+++ b/plugins/grilo/rb-grilo-source.c
@@ -972,7 +972,9 @@ browser_selection_changed_cb (GtkTreeSelection *selection, RBGriloSource *source
return;
}
- rb_search_entry_clear (source->priv->search_entry);
+ if (source->priv->search_entry != NULL) {
+ rb_search_entry_clear (source->priv->search_entry);
+ }
gtk_tree_model_get (GTK_TREE_MODEL (source->priv->browser_model), &iter,
0, &container,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]