summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Huuhko <kai.huuhko@gmail.com>2013-02-14 22:07:48 +0200
committerKai Huuhko <kai.huuhko@gmail.com>2013-02-14 22:07:48 +0200
commitac210e2cc4a58e776426b678cfe7c50f1db0a1dc (patch)
tree9f1bc21c04675670b0ec36d69686d995ddab14fd
parent1a81011d5aa2d0876041e143e394b35ef97934b7 (diff)
Verify that the restored track is in track library.
-rwxr-xr-xvalosoitin/Valosoitin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/valosoitin/Valosoitin.py b/valosoitin/Valosoitin.py
index 491feff..de2d96f 100755
--- a/valosoitin/Valosoitin.py
+++ b/valosoitin/Valosoitin.py
@@ -220,7 +220,7 @@ class Valosoitin(object):
220 220
221 f = conf.get("Last played", "filename") 221 f = conf.get("Last played", "filename")
222 if f: 222 if f:
223 if os.path.exists(f): 223 if os.path.exists(f) and self.library.has_key(f):
224 self.play_file(f, paused=True) 224 self.play_file(f, paused=True)
225 225
226 self.playlist.show() 226 self.playlist.show()