tomboy r2225 - in trunk: . Tomboy



Author: sharm
Date: Sat Oct 18 10:51:39 2008
New Revision: 2225
URL: http://svn.gnome.org/viewvc/tomboy?rev=2225&view=rev

Log:
* Tomboy/XmlPreferencesClient.cs: Don't try to load prefs.xml if it does
not yet exist.

Modified:
   trunk/ChangeLog
   trunk/Tomboy/XmlPreferencesClient.cs

Modified: trunk/Tomboy/XmlPreferencesClient.cs
==============================================================================
--- trunk/Tomboy/XmlPreferencesClient.cs	(original)
+++ trunk/Tomboy/XmlPreferencesClient.cs	Sat Oct 18 10:51:39 2008
@@ -23,7 +23,8 @@
 				Services.NativeApplication.ConfDir,
 				"prefs.xml");
 			prefsDoc = new XmlDocument ();
-			prefsDoc.Load (fileName);
+			if (File.Exists (fileName))
+				prefsDoc.Load (fileName);
 			events = new Dictionary<string, NotifyEventHandler> ();
 		}
 		



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]