[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdeaddons/konq-plugins/searchbar
From: Pascal Létourneau <pletourn () globetrotter ! net>
Date: 2005-03-06 6:14:18
Message-ID: 20050306061418.69AC5E772 () office ! kde ! org
[Download RAW message or body]
CVS commit by pletourn:
Encode search string even when there is no default search engine
M +5 -2 searchbar.cpp 1.26
--- kdeaddons/konq-plugins/searchbar/searchbar.cpp #1.25:1.26
@@ -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