From e90541c1af9576486f48fc78d4b0a922ec6316f4 Mon Sep 17 00:00:00 2001 From: Sebastian Trueg Date: Thu, 17 Apr 2008 11:58:08 +0000 Subject: Use the display text for the info sidebar title instead of the filename. svn path=/trunk/KDE/kdebase/apps/; revision=798076 --- src/infosidebarpage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/infosidebarpage.cpp') diff --git a/src/infosidebarpage.cpp b/src/infosidebarpage.cpp index a4c3d4157..9d5ce0f6a 100644 --- a/src/infosidebarpage.cpp +++ b/src/infosidebarpage.cpp @@ -261,7 +261,7 @@ void InfoSidebarPage::showItemInfo() connect(job, SIGNAL(failed(const KFileItem&)), this, SLOT(showIcon(const KFileItem&))); - m_nameLabel->setText(file.fileName()); + m_nameLabel->setText( !m_fileItem.isNull() && selectedItems.isEmpty() ? m_fileItem.text() : selectedItems[0].text() ); } showMetaInfo(); -- cgit v1.3