From 8500f2d327f4d44e6e7dc2f256b001b3a7af1239 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Cort=C3=A9z?= Date: Wed, 23 Mar 2016 11:36:07 -0600 Subject: [PATCH] Play_all: If there are no selection, play all audios --- src/controller/buffers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/controller/buffers.py b/src/controller/buffers.py index 8ce708a..6f10fbe 100644 --- a/src/controller/buffers.py +++ b/src/controller/buffers.py @@ -157,6 +157,8 @@ class audioBuffer(feedBuffer): def play_all(self, *args, **kwargs): selected = self.tab.list.get_selected() + if selected == -1: + selected = 0 audios = [i["url"] for i in self.session.db[self.name]["items"][selected:]] pub.sendMessage("play-audios", audios=audios)