From 9be5b10112f0706b39c9f51766ef04c3d4ff9d77 Mon Sep 17 00:00:00 2001 From: Bryan Schumaker Date: Thu, 23 Jun 2011 10:21:24 -0400 Subject: [PATCH] libsaria: Clear cur_id when loading file This allows me to return the correct attributes for a random song loaded by the user. --- libsaria/path/files.py | 1 + 1 file changed, 1 insertion(+) diff --git a/libsaria/path/files.py b/libsaria/path/files.py index 30238629..272aca28 100644 --- a/libsaria/path/files.py +++ b/libsaria/path/files.py @@ -24,6 +24,7 @@ def open_xml(file): def open_music(file): try: + libsaria.sources.cur_id = None libsaria.controls.load(file) libsaria.controls.play() except Exception, e: