]> cloud.milkyroute.net Git - dolphin.git/commitdiff
AFAIK the last character is at length()-1.
authorKevin Ottens <ervin@kde.org>
Sat, 25 Nov 2006 17:18:38 +0000 (17:18 +0000)
committerKevin Ottens <ervin@kde.org>
Sat, 25 Nov 2006 17:18:38 +0000 (17:18 +0000)
svn path=/trunk/playground/utils/dolphin/; revision=607758

src/urlnavigator.cpp

index 1f9295cb5fbfcb6129b3cfa9400eaa79bd9bd290..c76278e6114df3e2b64ebec5221162e1d5bb784b 100644 (file)
@@ -203,7 +203,7 @@ KUrl UrlNavigator::url(int index) const
     QString path(url().pathOrUrl());
     path = path.section('/', 0, index);
 
-    if (path.at(path.length()) != '/')
+    if (path.at(path.length()-1) != '/')
     {
         path.append('/');
     }