nemo r67 - trunk/gtk



Author: arj
Date: Thu Jan 10 15:12:38 2008
New Revision: 67
URL: http://svn.gnome.org/viewvc/nemo?rev=67&view=rev

Log:
Fix if search tool token is not set



Modified:
   trunk/gtk/MainWindow.cs

Modified: trunk/gtk/MainWindow.cs
==============================================================================
--- trunk/gtk/MainWindow.cs	(original)
+++ trunk/gtk/MainWindow.cs	Thu Jan 10 15:12:38 2008
@@ -67,8 +67,8 @@
 		else if (Singleton<Configuration>.Instance.data.search_tool == "xesam")
 			broker = new Xesam(reindex);
 		else {
-			System.Console.WriteLine("unknown search tool token found in configuration: {0}", Singleton<Configuration>.Instance.data.search_tool);
-			throw new Exception("die");
+			System.Console.WriteLine("Unknown search tool token found in configuration: {0}, falling back to tracker", Singleton<Configuration>.Instance.data.search_tool);
+			broker = new Tracker(reindex);
 		}
 
 		Singleton<SingletonWrapper<Broker>>.Instance.wrapped = broker;



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