mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-20 00:41:23 +00:00
Display the tab title on root (/) folder properly in konqueror filemanager mode
REVIEW:101374 BUG:153573 (cherry picked from commit 1163d84aeee906121bf4753903b04d4803596a54)
This commit is contained in:
parent
ea64379640
commit
52941af13c
|
@ -657,7 +657,11 @@ void KonqView::setCaption( const QString & caption )
|
|||
// Is the caption a URL? If so, is it local? If so, only display the filename!
|
||||
KUrl url(caption);
|
||||
if (url.isValid() && url.isLocalFile() && url.fileName() == this->url().fileName())
|
||||
adjustedCaption = url.fileName();
|
||||
{
|
||||
adjustedCaption = url.fileName();
|
||||
if (adjustedCaption.isEmpty())
|
||||
adjustedCaption = QLatin1Char('/');
|
||||
}
|
||||
}
|
||||
|
||||
m_caption = adjustedCaption;
|
||||
|
|
Loading…
Reference in a new issue