Only attempt to set an image if there actually is an image configured. Closes LP #404846

This commit is contained in:
Chris Jones 2009-09-02 11:01:30 +01:00
parent 22303f1dcb
commit 1d332c915e
1 changed files with 1 additions and 1 deletions

View File

@ -811,7 +811,7 @@ text/plain
dbg ('H9TRANS: Configuring background type as: %s' % background_type)
# 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)
self._vte.set_background_image_file (self.conf.background_image)
dbg ('H9TRANS: Setting background image scroll to: %s' % self.conf.scroll_background)