fix empty soundplayer entry ui problem

This commit is contained in:
Nikos Kouremenos 2005-08-25 20:22:30 +00:00
parent 5800df0d44
commit ede8e3b3cd
1 changed files with 2 additions and 0 deletions

View File

@ -295,6 +295,7 @@ class PreferencesWindow:
# sound player
player = gajim.config.get('soundplayer')
self.xml.get_widget('soundplayer_entry').set_text(command)
if player == '': # only on first time Gajim starts
commands = ('esdplay', 'artsplay', 'aplay', 'play')
for command in commands:
@ -303,6 +304,7 @@ class PreferencesWindow:
gajim.config.set('soundplayer', command)
break
#sounds treeview
self.sound_tree = self.xml.get_widget('sounds_treeview')