From kde-commits Sun Jan 13 08:32:44 2008 From: =?utf-8?q?Frode=20M=2E=20D=C3=B8ving?= Date: Sun, 13 Jan 2008 08:32:44 +0000 To: kde-commits Subject: KDE/kdebase/workspace/plasma/runners/locations Message-Id: <1200213164.975674.22689.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=120021317223819 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"); }