don't compute bw avatar if no avatar. Fixes #1839
This commit is contained in:
parent
a003eca56f
commit
9427fdaed1
1 changed files with 6 additions and 6 deletions
12
src/gajim.py
12
src/gajim.py
|
@ -1076,12 +1076,12 @@ class Interface:
|
||||||
if pixbuf:
|
if pixbuf:
|
||||||
path_to_normal_file = path_to_file + '_notif_size_colored.png'
|
path_to_normal_file = path_to_file + '_notif_size_colored.png'
|
||||||
pixbuf.save(path_to_normal_file, 'png')
|
pixbuf.save(path_to_normal_file, 'png')
|
||||||
# Generate and save the resized, black and white avatar
|
# Generate and save the resized, black and white avatar
|
||||||
bwbuf = gtkgui_helpers.get_scaled_pixbuf(
|
bwbuf = gtkgui_helpers.get_scaled_pixbuf(
|
||||||
gtkgui_helpers.make_pixbuf_grayscale(pixbuf), 'notification')
|
gtkgui_helpers.make_pixbuf_grayscale(pixbuf), 'notification')
|
||||||
if bwbuf:
|
if bwbuf:
|
||||||
path_to_bw_file = path_to_file + '_notif_size_bw.png'
|
path_to_bw_file = path_to_file + '_notif_size_bw.png'
|
||||||
bwbuf.save(path_to_bw_file, 'png')
|
bwbuf.save(path_to_bw_file, 'png')
|
||||||
|
|
||||||
def add_event(self, account, jid, typ, args):
|
def add_event(self, account, jid, typ, args):
|
||||||
'''add an event to the awaiting_events var'''
|
'''add an event to the awaiting_events var'''
|
||||||
|
|
Loading…
Add table
Reference in a new issue