From: Frank Reininghaus Date: Tue, 10 Jul 2012 06:23:14 +0000 (+0200) Subject: Use the right name when adding a folder to Places with the context menu X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/d1963d22718380854d8a948f64bc5e0c4c8813d4 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! CCBUG: 303157 --- 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); }