[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE_3_4_BRANCH: kdeaddons/konq-plugins/searchbar
From:       Pascal Létourneau <pletourn () globetrotter ! net>
Date:       2005-03-06 6:15:58
Message-ID: 20050306061558.0C028E772 () office ! kde ! org
[Download RAW message or body]

CVS commit by pletourn: 

Encode search string even when there is no default search engine

BUG:94862


  M +5 -2      searchbar.cpp   1.25.2.1


--- kdeaddons/konq-plugins/searchbar/searchbar.cpp  #1.25:1.25.2.1
@@ -125,6 +125,9 @@ void SearchBarPlugin::startSearch(const 
                 if(!KURIFilter::self()->filterURI(data, list))
                 {
-                        KDesktopFile file("searchproviders/google.desktop", true, "services");
-                        data.setData(file.readEntry("Query").replace("\\{@}", search));
+                        KConfig config( "kuriikwsfilterrc", true, false );
+                        config.setGroup( "General" );
+                        char deli = config.readNumEntry( "KeywordDelimiter", ':' );
+                        data.setData( QString::fromLatin1( "google" ) + deli + search );
+                        KURIFilter::self()->filterURI( data, list );
                 }
                 emit m_part->browserExtension()->openURLRequest(data.uri());


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic