]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Do not add custom query items to the query URL. Instead use the existing method to...
authorSebastian Trueg <sebastian@trueg.de>
Thu, 22 Jul 2010 08:26:09 +0000 (08:26 +0000)
committerSebastian Trueg <sebastian@trueg.de>
Thu, 22 Jul 2010 08:26:09 +0000 (08:26 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=1152960

src/search/dolphinsearchoptionsconfigurator.cpp

index 51d90203b7fc32202f710277f0081848871e7319..e51ab8c64d67ea88fb93453a8b2a629d565f842e 100644 (file)
@@ -202,9 +202,9 @@ KUrl DolphinSearchOptionsConfigurator::nepomukSearchUrl() const
 {
     const Nepomuk::Query::Query query = nepomukQuery();
     if ( query.isValid() ) {
-        KUrl url = query.toSearchUrl();
-        url.addQueryItem( QLatin1String( "userquery" ), customSearchQuery() );
-        return url;
+        return query.toSearchUrl( i18nc( "@title UDS_DISPLAY_NAME for a KIO directory listing. %1 is the query the user entered.",
+                                         "Query Results from '%1'",
+                                         customSearchQuery() ) );
     }
     else {
         return KUrl();