From cc8a62ff160c0619b09fe7827c6fd6f38e023866 Mon Sep 17 00:00:00 2001 From: Frank Reininghaus Date: Tue, 5 May 2009 21:49:03 +0000 Subject: Don't show an empty window caption when browsing "/", "trash:", etc. BUG: 190783 svn path=/trunk/KDE/kdebase/apps/; revision=964061 --- src/dolphinmainwindow.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/dolphinmainwindow.h') diff --git a/src/dolphinmainwindow.h b/src/dolphinmainwindow.h index 5e1d27476..c1e0ffcbd 100644 --- a/src/dolphinmainwindow.h +++ b/src/dolphinmainwindow.h @@ -435,6 +435,12 @@ private: */ QString tabProperty(const QString& property, int tabIndex) const; + /** + * Sets the window caption to url.fileName() if this is non-empty, + * "/" if the URL is "file:///", and url.protocol() otherwise. + */ + void setUrlAsCaption(const KUrl& url); + private: /** * Implements a custom error handling for the undo manager. This -- cgit v1.3