diff options
| author | Frank Reininghaus <[email protected]> | 2012-07-10 08:23:14 +0200 |
|---|---|---|
| committer | Frank Reininghaus <[email protected]> | 2012-07-10 08:23:14 +0200 |
| commit | d1963d22718380854d8a948f64bc5e0c4c8813d4 (patch) | |
| tree | 3e4866b64cc64cd8327c259fa65a8535b8ebc81d /src/dolphincontextmenu.cpp | |
| parent | f3c13b1a42b2334b05fa856538946f025bd3fec2 (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!
CCBUG: 303157
Diffstat (limited to 'src/dolphincontextmenu.cpp')
| -rw-r--r-- | src/dolphincontextmenu.cpp | 2 |
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); } |
