aboutsummaryrefslogtreecommitdiff
path: root/src/mpris2-controller.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2012-02-29 21:05:26 +0000
committerConor Curran <conor.curran@canonical.com>2012-02-29 21:05:26 +0000
commit5d56e1dc1ee21ec92028275690b5ce2f7595e68e (patch)
tree56b9cdddbda6b273e98cc9cf726defec7beceb30 /src/mpris2-controller.vala
parent062aadf6d9ab7f1cecfab74159507047d52dc6d8 (diff)
downloadayatana-indicator-sound-5d56e1dc1ee21ec92028275690b5ce2f7595e68e.tar.gz
ayatana-indicator-sound-5d56e1dc1ee21ec92028275690b5ce2f7595e68e.tar.bz2
ayatana-indicator-sound-5d56e1dc1ee21ec92028275690b5ce2f7595e68e.zip
make sure to return if there is no valid playlist
Diffstat (limited to 'src/mpris2-controller.vala')
-rw-r--r--src/mpris2-controller.vala3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mpris2-controller.vala b/src/mpris2-controller.vala
index cc80a86..0fa7b6c 100644
--- a/src/mpris2-controller.vala
+++ b/src/mpris2-controller.vala
@@ -248,8 +248,7 @@ public class Mpris2Controller : GLib.Object
private bool fetch_active_playlist()
{
if (this.playlists.ActivePlaylist.valid == false){
- // TODO
- // What happens here ?
+ return false;
}
PlaylistsMenuitem playlists_item = this.owner.custom_items[PlayerController.widget_order.PLAYLISTS] as PlaylistsMenuitem;
playlists_item.active_playlist_update ( this.playlists.ActivePlaylist.details );