1
0
mirror of https://invent.kde.org/system/dolphin synced 2024-07-02 16:31:23 +00:00

AFAIK the last character is at length()-1.

svn path=/trunk/playground/utils/dolphin/; revision=607758
This commit is contained in:
Kevin Ottens 2006-11-25 17:18:38 +00:00
parent 95febf9b0f
commit 92d346ae78

View 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('/');
}