don't set default font when config value is ''
This commit is contained in:
parent
86af45d66f
commit
d3d82f3e66
1 changed files with 0 additions and 5 deletions
|
@ -249,11 +249,6 @@ class PreferencesWindow:
|
||||||
# try to set default font for the current desktop env
|
# try to set default font for the current desktop env
|
||||||
fontbutton = self.xml.get_widget('conversation_fontbutton')
|
fontbutton = self.xml.get_widget('conversation_fontbutton')
|
||||||
if font == '':
|
if font == '':
|
||||||
font = gtkgui_helpers.get_default_font()
|
|
||||||
if font is not None:
|
|
||||||
font = 'Sans 10'
|
|
||||||
gajim.config.set('conversation_font', font)
|
|
||||||
fontbutton.set_font_name(font)
|
|
||||||
fontbutton.set_sensitive(False)
|
fontbutton.set_sensitive(False)
|
||||||
self.xml.get_widget('default_chat_font').set_active(True)
|
self.xml.get_widget('default_chat_font').set_active(True)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Reference in a new issue