diff options
| author | Kevin Ottens <[email protected]> | 2006-11-25 17:18:38 +0000 |
|---|---|---|
| committer | Kevin Ottens <[email protected]> | 2006-11-25 17:18:38 +0000 |
| commit | 92d346ae7838668c92643548a84fb2903c08c40d (patch) | |
| tree | e0dd40024bd7104cf393eff5a263e077a48b5655 /src | |
| parent | 95febf9b0f19db513c0a4679e2d23d141a9754fd (diff) | |
AFAIK the last character is at length()-1.
svn path=/trunk/playground/utils/dolphin/; revision=607758
Diffstat (limited to 'src')
| -rw-r--r-- | src/urlnavigator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/urlnavigator.cpp b/src/urlnavigator.cpp index 1f9295cb5..c76278e61 100644 --- a/src/urlnavigator.cpp +++ b/src/urlnavigator.cpp @@ -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('/'); } |
