diff options
author | Manuel Kaufmann <humitos@gmail.com> | 2013-01-28 20:41:57 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2013-01-29 13:41:57 (GMT) |
commit | 611a35366f837f0a5533af2f890af06922b363c8 (patch) | |
tree | a1316b8c493edbd32044e4cfc1035467e7cda2d4 /playlist.py | |
parent | 629d101fb42e03247811afa8c2b817981d9a1255 (diff) |
Keep the Gio.VolumeMonitor instance in memory
We need to keep a reference to Gio.VolumeMonitor from JukeboxActivity
class (we use 'self' for this) to be able to listen to the signals
emitted.
This bug was introduced in 874cae39902b8bfb02c115772b95535519aeb253
Signed-off-by: Manuel Kaufmann <humitos@gmail.com>
Diffstat (limited to 'playlist.py')
-rw-r--r-- | playlist.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/playlist.py b/playlist.py index 8068eb7..6c94fb2 100644 --- a/playlist.py +++ b/playlist.py @@ -172,7 +172,8 @@ class PlayList(Gtk.ScrolledWindow): def update(self): for tree_item, playlist_item in zip(self.treemodel, self._items): - tree_item[2] = self.check_available_media(playlist_item['path']) + tree_item[2] = playlist_item['available'] = \ + self.check_available_media(playlist_item['path']) def _add_track(self, file_path, title): available = self.check_available_media(file_path) |