[rhythmbox] source-header: don't sync source state if there's no source (bug #607935)
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] source-header: don't sync source state if there's no source (bug #607935)
- Date: Mon, 22 Feb 2010 12:07:46 +0000 (UTC)
commit c884a26c901274c04400760354bd2e8fd94c3f83
Author: Jonathan Matthew <jonathan d14n org>
Date: Mon Feb 22 22:06:00 2010 +1000
source-header: don't sync source state if there's no source (bug #607935)
When there's no selected source (such as when visualization is active),
it doesn't make any sense to sync the header with the source's state.
shell/rb-source-header.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/shell/rb-source-header.c b/shell/rb-source-header.c
index 7f5fa01..53fafa0 100644
--- a/shell/rb-source-header.c
+++ b/shell/rb-source-header.c
@@ -677,6 +677,10 @@ rb_source_state_sync (RBSourceHeader *header,
gboolean do_search = FALSE;
char *old_text = NULL;
+ if (header->priv->selected_source == NULL) {
+ return;
+ }
+
state = g_hash_table_lookup (header->priv->source_states,
header->priv->selected_source);
if (state == NULL) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]