Fixed bug when there is no cd burner installed

This commit is contained in:
Sergio Costas 2017-07-10 22:38:19 +02:00
parent c518683fbc
commit 46da595b05
3 changed files with 8 additions and 2 deletions

View file

@ -453,7 +453,10 @@ class interface_manager(GObject.GObject):
for element in self.interface_comboboxes:
obj = builder.get_object(element[0])
exec('self.' + element[0] + ' = element[1][obj.get_active()]')
if (len(element[1]) != 0):
exec('self.' + element[0] + ' = element[1][obj.get_active()]')
else:
exec('self.' + element[0] + ' = ""')
def save_ui(self):
""" Makes a copy of all the UI variables """