libsaria: Clear cur_id when loading file

This allows me to return the correct attributes for a random song loaded
by the user.
This commit is contained in:
Bryan Schumaker 2011-06-23 10:21:24 -04:00
parent d9f89e0ecd
commit 9be5b10112
1 changed files with 1 additions and 0 deletions

View File

@ -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: