From: Fraxinas Date: Tue, 4 Nov 2008 22:03:42 +0000 (+0100) Subject: don't crash when exitting dvd image selection without selection X-Git-Tag: 2.6.0~350^2~35 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/73e179bb7dfd67800dce39a383a269b2d871d180?hp=61e2eca2450a20da4ecd5cc138058e221df9837f don't crash when exitting dvd image selection without selection --- diff --git a/lib/python/Plugins/Extensions/DVDBurn/TitleList.py b/lib/python/Plugins/Extensions/DVDBurn/TitleList.py index 600411ce..19380af4 100644 --- a/lib/python/Plugins/Extensions/DVDBurn/TitleList.py +++ b/lib/python/Plugins/Extensions/DVDBurn/TitleList.py @@ -207,10 +207,11 @@ class TitleList(Screen, HelpableScreen): self.session.openWithCallback(self.JobViewCB, JobView, job) def burnISO(self, path, scope): - job = Process.DVDisoJob(self.project, path) - job_manager.AddJob(job) - job_manager.in_background = False - self.session.openWithCallback(self.JobViewCB, JobView, job) + if path: + job = Process.DVDisoJob(self.project, path) + job_manager.AddJob(job) + job_manager.in_background = False + self.session.openWithCallback(self.JobViewCB, JobView, job) def JobViewCB(self, in_background): job_manager.in_background = in_background