From 9bfad93279c0e88cc2328139f3628458149ea56a Mon Sep 17 00:00:00 2001 From: Alexander Cherniuk Date: Sat, 28 Nov 2009 00:07:01 +0200 Subject: [PATCH] A final refactoring touch --- src/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.py b/src/config.py index 49c1ce428..65f14cac6 100644 --- a/src/config.py +++ b/src/config.py @@ -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)