From 56b992c48622102c19867294ca0930cba7879c7d Mon Sep 17 00:00:00 2001 From: Frank Reininghaus Date: Tue, 10 Jul 2012 08:23:14 +0200 Subject: [PATCH] Use the right name when adding a folder to Places with the context menu Without this patch, the name of the parent folder was used for the entry in the Places Panel. Will backport to the KDE/4.9 branch when the RC2 freeze is over. Thanks to Daniel Kreuter for the patch! BUG: 303157 FIXED-IN: 4.9.0 (cherry picked from commit 9940244ddd68fabf2979b9c0832105e43d725619) --- src/dolphincontextmenu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dolphincontextmenu.cpp b/src/dolphincontextmenu.cpp index e1913a82f..bb26c7aae 100644 --- a/src/dolphincontextmenu.cpp +++ b/src/dolphincontextmenu.cpp @@ -295,7 +295,7 @@ void DolphinContextMenu::openItemContextMenu() const KUrl selectedUrl(m_fileInfo.url()); if (selectedUrl.isValid()) { PlacesItemModel model; - const QString text = m_mainWindow->activeViewContainer()->placesText(); + const QString text = selectedUrl.fileName(); PlacesItem* item = model.createPlacesItem(text, selectedUrl); model.appendItemToGroup(item); } -- 2.47.3