From: Andreas Monzner Date: Wed, 25 Jun 2008 16:42:58 +0000 (+0000) Subject: dont crash when press ok at the first line in filelist X-Git-Tag: 2.6.0~1103 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/bad1990b3c0ca897126c8456643a6d2b1afcaafd dont crash when press ok at the first line in filelist --- diff --git a/lib/python/Plugins/Extensions/DVDPlayer/plugin.py b/lib/python/Plugins/Extensions/DVDPlayer/plugin.py index 57706faf..6a69de42 100644 --- a/lib/python/Plugins/Extensions/DVDPlayer/plugin.py +++ b/lib/python/Plugins/Extensions/DVDPlayer/plugin.py @@ -56,8 +56,7 @@ class FileBrowser(Screen): self.close(filename[0:-9]) if self["filelist"].canDescent(): # isDir self["filelist"].descent() - pathname = self["filelist"].getCurrentDirectory() - print self["filelist"].getFilename() + pathname = self["filelist"].getCurrentDirectory() or "" if fileExists(pathname+"VIDEO_TS.IFO"): print "dvd structure found, trying to open..." self.close(pathname)