Trying to save nonexistent avatar results in error
Versions
- OS: Manjaro Linux
- GTK+ Version: 3.24.7
- PyGObject Version: 3.32.0
- GLib Version : 2.60.0
- python-nbxmpp Version: 0.9.91
- Gajim Version: 1.1.92
Traceback
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/gajim/gtk/dialogs.py", line 100, in on_response
self.possible_responses[response_id](dialog)
File "/usr/lib/python3.7/site-packages/gajim/gtk/dialogs.py", line 150, in on_response_ok
self.user_response_ok[0](*self.user_response_ok[1:])
File "/usr/lib/python3.7/site-packages/gajim/gtkgui_helpers.py", line 183, in on_ok
pixbuf.savev(file_path, 'png', [], [])
AttributeError: 'NoneType' object has no attribute 'savev'
Steps to reproduce the problem
Try to save nonexistent avatar (the default avatar) in chat window.
'Save As' should be hidden if no avatar is available.