From: Sebastian Trueg Date: Sun, 29 Nov 2009 18:16:36 +0000 (+0000) Subject: Use KFileItem::text() instead of KUrl::fileName() to display the entry's name in... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/bd47f7f9785943147d79041ada1f073b78cf718d Use KFileItem::text() instead of KUrl::fileName() to display the entry's name in the metadata panel. This way Nepomuk results and all entries from KIO slaves that make use of UDS_DISPLAY_NAME look nice. svn path=/trunk/KDE/kdebase/apps/; revision=1056260 --- diff --git a/src/panels/information/informationpanelcontent.cpp b/src/panels/information/informationpanelcontent.cpp index bd24e568d..889a0272f 100644 --- a/src/panels/information/informationpanelcontent.cpp +++ b/src/panels/information/informationpanelcontent.cpp @@ -184,7 +184,7 @@ void InformationPanelContent::showItem(const KFileItem& item) connect(job, SIGNAL(failed(const KFileItem&)), this, SLOT(showIcon(const KFileItem&))); - setNameLabelText(itemUrl.fileName()); + setNameLabelText(item.text()); } }