A final refactoring touch

This commit is contained in:
Alexander Cherniuk 2009-11-28 00:07:01 +02:00
parent 7c2ea20c03
commit 9bfad93279
1 changed files with 2 additions and 2 deletions

View File

@ -424,8 +424,8 @@ class PreferencesWindow:
model = gtk.ListStore(str, str)
combobox.set_model(model)
for index, (name, value) in enumerate(device_dict.iteritems()):
model.append([name, value])
for index, (name, value) in enumerate(sorted(device_dict.iteritems())):
model.append((name, value))
if gajim.config.get(opt_name + '_device') == name:
combobox.set_active(index)