mirror of
https://invent.kde.org/system/dolphin
synced 2024-07-04 17:30:55 +00:00
AFAIK the last character is at length()-1.
svn path=/trunk/playground/utils/dolphin/; revision=607758
This commit is contained in:
parent
95febf9b0f
commit
92d346ae78
|
@ -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('/');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user