Only attempt to set an image if there actually is an image configured. Closes LP #404846
This commit is contained in:
parent
22303f1dcb
commit
1d332c915e
@ -811,7 +811,7 @@ text/plain
|
|||||||
dbg ('H9TRANS: Configuring background type as: %s' % background_type)
|
dbg ('H9TRANS: Configuring background type as: %s' % background_type)
|
||||||
|
|
||||||
# set background image settings
|
# set background image settings
|
||||||
if background_type == "image":
|
if background_type == "image" and self.conf.background_image is not None and self.conf.background_image != '':
|
||||||
dbg ('H9TRANS: Setting background image to: %s' % self.conf.background_image)
|
dbg ('H9TRANS: Setting background image to: %s' % self.conf.background_image)
|
||||||
self._vte.set_background_image_file (self.conf.background_image)
|
self._vte.set_background_image_file (self.conf.background_image)
|
||||||
dbg ('H9TRANS: Setting background image scroll to: %s' % self.conf.scroll_background)
|
dbg ('H9TRANS: Setting background image scroll to: %s' % self.conf.scroll_background)
|
||||||
|
Loading…
Reference in New Issue
Block a user