This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/101374/

On May 16th, 2011, 9:36 p.m., Peter Penz wrote:

The patch is fine from my point of view, but Konqueror is maintained by David Faure -> it's up to David for a final "ship it" :-)
Actually the bug here is the fact that url.fileName() is used to retrieve a directory name. Though that does not make sense, at least not to me, it works correctly for non-root paths  because fileName() ignores trailing slashes by default. IOW, it works because by default the fileName function treats the last path as if it is a file, which to me, seems very hackish. Anyhow, your fix unnecessarily creates a temporary KUrl object that will to additionally parse "file:///". You could achieve the same thing without such cost by adding

if (adjustCaption.isEmpty() && url.isLocalFile())
   adjustCaption = QLatin1Char('/');

after the "adjustCaption = url.fileName()" call.

- Dawit


On May 16th, 2011, 9:43 p.m., Burkhard Lück wrote:

Review request for KDE Base Apps, David Faure and Peter Penz.
By Burkhard Lück.

Updated May 16, 2011, 9:43 p.m.

Description

Konqueror in filemanager mode shows an empty tab title on browsing root (/) folder. Dolphin displays the tab title on root (/) folder properly, so this patch is a copy of three lines from dolphin dolphinmainwindow.cpp.

Testing

compiled and works for me
Bugs: 153573

Diffs

  • konqueror/src/konqview.cpp (699c9d5)

View Diff