commit 1ab37fc82b8e901a7527bc20b1068c9cfbaa1ad0
parent e3772f7e023ffdfde11fcff6f3196f9f3d5298a2
Author: ThomasV <thomasv@gitorious>
Date: Sat, 14 Mar 2015 16:03:22 +0100
sort servers in network dialog
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gui/qt/network_dialog.py b/gui/qt/network_dialog.py
@@ -172,7 +172,7 @@ class NetworkDialog(QDialog):
def init_servers_list(self):
self.servers_list_widget.clear()
- for _host, d in self.servers.items():
+ for _host, d in sorted(self.servers.items()):
if d.get(self.protocol):
pruning_level = d.get('pruning','')
self.servers_list_widget.addTopLevelItem(QTreeWidgetItem( [ _host, pruning_level ] ))