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

List:       kde-commits
Subject:    KDE/kdebase/workspace/plasma/runners/locations
From:       Frode M. Døving <frode () lnix ! net>
Date:       2008-01-13 8:32:44
Message-ID: 1200213164.975674.22689.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 760658 by fdoving:

Locations runner: Don't lowercase the path-part of urls.



 M  +4 -2      locationrunner.cpp  


--- trunk/KDE/kdebase/workspace/plasma/runners/locations/locationrunner.cpp #760657:760658
@@ -52,7 +52,7 @@
 
 void LocationsRunner::match(Plasma::SearchContext *search)
 {
-    QString term = search->searchTerm().toLower();
+    QString term = search->searchTerm();
     m_type = search->type();
 
     if (m_type == Plasma::SearchContext::Directory ||
@@ -78,8 +78,10 @@
         KUrl url(term);
 
         if (url.protocol().isEmpty()) {
+            int idx = term.indexOf('/');
             url.clear();
-            url.setHost(term);
+            url.setHost(term.left(idx));
+            url.setPath(term.remove(0,idx));
             url.setProtocol("http");
         }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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