From 1e13ca711ffea2ae1ac9ec2a33f62bda825e1325 Mon Sep 17 00:00:00 2001 From: Hylke Date: Sat, 2 Jul 2011 17:20:54 +0100 Subject: [PATCH] intro config: we want to prefill a host only once --- SparkleLib/SparkleConfig.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SparkleLib/SparkleConfig.cs b/SparkleLib/SparkleConfig.cs index 563a99dc..cb69040a 100644 --- a/SparkleLib/SparkleConfig.cs +++ b/SparkleLib/SparkleConfig.cs @@ -206,7 +206,8 @@ namespace SparkleLib { foreach (XmlNode node_folder in SelectNodes ("/sparkleshare/folder")) { Uri uri = new Uri (node_folder ["url"].InnerText); - hosts.Add (uri.Host); + if (!hosts.Contains (uri.Host)) + hosts.Add (uri.Host); } return hosts;