┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Reininghaus <[email protected]>2012-07-10 08:23:14 +0200
committerFrank Reininghaus <[email protected]>2012-07-12 00:40:09 +0200
commit56b992c48622102c19867294ca0930cba7879c7d (patch)
tree3ee940dd091a6e960d579b2a89d08e1c2fc7dfb2
parentfbde0901b7e9a174aa65751f95a5b97a084bb098 (diff)
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)
-rw-r--r--src/dolphincontextmenu.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}