don't crash when exitting dvd image selection without selection
authorFraxinas <andreas.frisch@multimedia-labs.de>
Tue, 4 Nov 2008 22:03:42 +0000 (23:03 +0100)
committerAndreas Oberritter <obi@saftware.de>
Thu, 6 Nov 2008 00:47:05 +0000 (01:47 +0100)
lib/python/Plugins/Extensions/DVDBurn/TitleList.py

index 600411c..19380af 100644 (file)
@@ -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