diff --git a/lib/client/new_job_window.py b/lib/client/new_job_window.py index da04e83..75ea5ce 100755 --- a/lib/client/new_job_window.py +++ b/lib/client/new_job_window.py @@ -221,10 +221,12 @@ class NewJobWindow(Frame): if self.renderer_info.get(renderer, {}).get('supported_export_formats', None): formats = self.renderer_info[renderer]['supported_export_formats'] + if formats and isinstance(formats[0], dict): + formats = [x.get('name', str(x)) for x in formats] formats.sort() self.output_format['values'] = formats self.output_format['state'] = NORMAL - self.output_format.current(formats.index('JPEG')) + self.output_format.current(0) else: self.output_format['values'] = [] self.output_format['state'] = DISABLED