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

View file

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