A final refactoring touch
This commit is contained in:
parent
7c2ea20c03
commit
9bfad93279
1 changed files with 2 additions and 2 deletions
|
@ -424,8 +424,8 @@ class PreferencesWindow:
|
||||||
model = gtk.ListStore(str, str)
|
model = gtk.ListStore(str, str)
|
||||||
combobox.set_model(model)
|
combobox.set_model(model)
|
||||||
|
|
||||||
for index, (name, value) in enumerate(device_dict.iteritems()):
|
for index, (name, value) in enumerate(sorted(device_dict.iteritems())):
|
||||||
model.append([name, value])
|
model.append((name, value))
|
||||||
if gajim.config.get(opt_name + '_device') == name:
|
if gajim.config.get(opt_name + '_device') == name:
|
||||||
combobox.set_active(index)
|
combobox.set_active(index)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue