mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 10:52:49 +00:00
kdecore: return empty string if there is no slash in the input of kPathDirectory()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
4f1050a5ac
commit
bd990c2ae8
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ static QString kPathDirectory(const QString &path)
|
|||
{
|
||||
const int lastslash = path.lastIndexOf(QLatin1Char('/'));
|
||||
if (lastslash == -1) {
|
||||
return QString(QLatin1Char('.'));
|
||||
return QString();
|
||||
}
|
||||
if (lastslash == 0) {
|
||||
return QString(QLatin1Char('/'));
|
||||
|
|
Loading…
Add table
Reference in a new issue