]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Use the display text for the info sidebar title instead of the filename.
authorSebastian Trueg <sebastian@trueg.de>
Thu, 17 Apr 2008 11:58:08 +0000 (11:58 +0000)
committerSebastian Trueg <sebastian@trueg.de>
Thu, 17 Apr 2008 11:58:08 +0000 (11:58 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=798076

src/infosidebarpage.cpp

index a4c3d41579ba73b4c31139a041c8beab13a4d128..9d5ce0f6a83605e3f647d115e87ebcf491e5f607 100644 (file)
@@ -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();