searchui/indevicehandler/src/indevicehandler.cpp
changeset 26 367228f82b66
parent 16 e918432ddd92
--- a/searchui/indevicehandler/src/indevicehandler.cpp	Tue Sep 28 11:50:55 2010 +0530
+++ b/searchui/indevicehandler/src/indevicehandler.cpp	Tue Oct 05 13:32:14 2010 +0530
@@ -208,15 +208,8 @@
         mSearchInterface = NULL;
         }
     if (astring.length())
-        {
-        QString database("root ");
-        database.append(astring);
-        mSearchInterface = CpixSearcher::newInstance(database,
-                DEFAULT_SEARCH_FIELD);
-        }
-    else
-        {
-        mSearchInterface = CpixSearcher::newInstance("root",
+        {       
+        mSearchInterface = CpixSearcher::newInstance(astring,
                 DEFAULT_SEARCH_FIELD);
         }
     if (mSearchInterface)
@@ -230,7 +223,6 @@
                 SLOT(getBatchDocumentAsync(int,int,CpixDocument**)));
         }
     }
-
 // ---------------------------------------------------------------------------
 // InDeviceHandler::isPrepared()
 // verify the mSearchInterface is prepared or not