[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: =?utf-8?q?=5Bkde-baseapps=5D_konqueror/src=3A_Display_the_tab_ti?=
From: Burkhard_Lück <lueck () hube-lueck ! de>
Date: 2011-05-24 16:37:12
Message-ID: 20110524163712.882E5A60A6 () git ! kde ! org
[Download RAW message or body]
Git commit 52941af13c1d0fa59bbdf066f0e8d6bf936dc3b4 by Burkhard Lück.
Committed on 24/05/2011 at 18:30.
Pushed by lueck into branch 'master'.
Display the tab title on root (/) folder properly in konqueror filemanager mode
REVIEW:101374
BUG:153573
(cherry picked from commit 1163d84aeee906121bf4753903b04d4803596a54)
M +5 -1 konqueror/src/konqview.cpp
http://commits.kde.org/kde-baseapps/52941af13c1d0fa59bbdf066f0e8d6bf936dc3b4
diff --git a/konqueror/src/konqview.cpp b/konqueror/src/konqview.cpp
index f2f6f62..efd7f07 100644
--- a/konqueror/src/konqview.cpp
+++ b/konqueror/src/konqview.cpp
@@ -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;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic