From: Sebastian Trueg Date: Thu, 17 Apr 2008 11:58:08 +0000 (+0000) Subject: Use the display text for the info sidebar title instead of the filename. X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/e90541c1af9576486f48fc78d4b0a922ec6316f4 Use the display text for the info sidebar title instead of the filename. svn path=/trunk/KDE/kdebase/apps/; revision=798076 --- 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();