┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuca Gugelmann <[email protected]>2007-03-26 11:39:52 +0000
committerLuca Gugelmann <[email protected]>2007-03-26 11:39:52 +0000
commit86dba586438d75053d0d3179262627ee672d8fb3 (patch)
treec9e0a7892600449fbb349816204886a3759b0ea3 /src
parent2d9dfdf3b3d8585d5aeb93c115967450c863405b (diff)
Avoid to use QUrl::toString, as per Davids suggestion.
svn path=/trunk/KDE/kdebase/apps/; revision=646643
Diffstat (limited to 'src')
-rw-r--r--src/urlnavigator.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/urlnavigator.cpp b/src/urlnavigator.cpp
index ee06f558a..00edcfe50 100644
--- a/src/urlnavigator.cpp
+++ b/src/urlnavigator.cpp
@@ -152,7 +152,8 @@ KUrl UrlNavigator::url(int index) const
assert(index >= 0);
// keep scheme, hostname etc. maybe we will need this in the future
// for e.g. browsing ftp repositories.
- QString pre(((QUrl)url()).toString(QUrl::RemovePath));
+ KUrl newurl(url());
+ newurl.setPath(QString());
QString path(url().path());
if (!path.isEmpty()) {
@@ -162,7 +163,8 @@ KUrl UrlNavigator::url(int index) const
path = path.section('/', 0, index);
}
- return KUrl(pre + path);
+ newurl.setPath(path);
+ return newurl;
}
const QLinkedList<UrlNavigator::HistoryElem>& UrlNavigator::history(int& index) const