don't set default font when config value is ''

This commit is contained in:
Dimitur Kirov 2006-07-03 11:53:50 +00:00
parent 86af45d66f
commit d3d82f3e66
1 changed files with 0 additions and 5 deletions

View File

@ -249,11 +249,6 @@ class PreferencesWindow:
# try to set default font for the current desktop env
fontbutton = self.xml.get_widget('conversation_fontbutton')
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)
self.xml.get_widget('default_chat_font').set_active(True)
else: