[rhythmbox] fix segfault when showing all in non-source pages
- From: Jamie Nicol <jamien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] fix segfault when showing all in non-source pages
- Date: Sat, 1 Jan 2011 18:10:18 +0000 (UTC)
commit 955bb93753abb3c01e9dd97290459b70c5b3028d
Author: Jamie Nicol <jamie thenicols net>
Date: Fri Dec 31 17:50:12 2010 +0000
fix segfault when showing all in non-source pages
shell/rb-shell.c | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/shell/rb-shell.c b/shell/rb-shell.c
index 660dc35..323efa9 100644
--- a/shell/rb-shell.c
+++ b/shell/rb-shell.c
@@ -2964,12 +2964,14 @@ static void
rb_shell_cmd_view_all (GtkAction *action,
RBShell *shell)
{
- RBSource *source = RB_SOURCE (shell->priv->selected_page);
- rb_debug ("view all");
+ if (RB_IS_SOURCE (shell->priv->selected_page)) {
+ RBSource *source = RB_SOURCE (shell->priv->selected_page);
+ rb_debug ("view all");
- rb_source_reset_filters (source);
- rb_source_header_clear_search (shell->priv->source_header);
- rb_source_header_focus_search_box (shell->priv->source_header);
+ rb_source_reset_filters (source);
+ rb_source_header_clear_search (shell->priv->source_header);
+ rb_source_header_focus_search_box (shell->priv->source_header);
+ }
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]