[rhythmbox] playlist-manager: always check the queue to see if we need to save
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] playlist-manager: always check the queue to see if we need to save
- Date: Sun, 12 Feb 2012 07:08:21 +0000 (UTC)
commit 1d0df3853cde943fbec045419e7e505ea8fb441f
Author: Jonathan Matthew <jonathan d14n org>
Date: Sun Feb 12 17:07:52 2012 +1000
playlist-manager: always check the queue to see if we need to save
shell/rb-playlist-manager.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/shell/rb-playlist-manager.c b/shell/rb-playlist-manager.c
index da1b9df..73ce944 100644
--- a/shell/rb-playlist-manager.c
+++ b/shell/rb-playlist-manager.c
@@ -518,6 +518,15 @@ rb_playlist_manager_is_dirty (RBPlaylistManager *mgr)
(GtkTreeModelForeachFunc) _is_dirty_playlist,
&dirty);
+ /* explicitly check the play queue */
+ if (dirty == FALSE) {
+ RBSource *queue_source;
+
+ g_object_get (mgr->priv->shell, "queue-source", &queue_source, NULL);
+ g_object_get (queue_source, "dirty", &dirty, NULL);
+ g_object_unref (queue_source);
+ }
+
if (!dirty)
dirty = g_atomic_int_get (&mgr->priv->dirty);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]