tasque r186 - in trunk: . src



Author: sharm
Date: Wed Dec 24 18:37:41 2008
New Revision: 186
URL: http://svn.gnome.org/viewvc/tasque?rev=186&view=rev

Log:
* tasque/src/Application.cs: In RetryBackend, only Cleanup+Initialize if
  the backend isn't configured. Fixes problem with backends beining
  initialized twice (reproduce by clearing prefs, launching Tasque,
  choosing Local File backend, and noticing that no category is
  selected).

Modified:
   trunk/ChangeLog
   trunk/src/Application.cs

Modified: trunk/src/Application.cs
==============================================================================
--- trunk/src/Application.cs	(original)
+++ trunk/src/Application.cs	Wed Dec 24 18:37:41 2008
@@ -406,8 +406,10 @@
 		}
 		private bool RetryBackend(){
 			try {
-				backend.Cleanup();
-				backend.Initialize();
+				if (backend != null && !backend.Configured) {
+					backend.Cleanup();
+					backend.Initialize();
+				}
 			} catch (Exception e) {
 				Logger.Error("{0}", e.Message);
 			}



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