Commit fba5dd58 authored by Emmanuel Pescosta's avatar Emmanuel Pescosta
Browse files

Save bookmarks when adding them via the context menu.

CCBUG: 345347
REVIEW: 123080
parent e63b1de2
...@@ -305,6 +305,7 @@ void DolphinContextMenu::openItemContextMenu() ...@@ -305,6 +305,7 @@ void DolphinContextMenu::openItemContextMenu()
const QString text = selectedUrl.fileName(); const QString text = selectedUrl.fileName();
PlacesItem* item = model.createPlacesItem(text, selectedUrl); PlacesItem* item = model.createPlacesItem(text, selectedUrl);
model.appendItemToGroup(item); model.appendItemToGroup(item);
model.saveBookmarks();
} }
} else if (activatedAction == openParentAction) { } else if (activatedAction == openParentAction) {
m_command = OpenParentFolder; m_command = OpenParentFolder;
...@@ -370,6 +371,7 @@ void DolphinContextMenu::openViewportContextMenu() ...@@ -370,6 +371,7 @@ void DolphinContextMenu::openViewportContextMenu()
PlacesItem* item = model.createPlacesItem(container->placesText(), PlacesItem* item = model.createPlacesItem(container->placesText(),
container->url()); container->url());
model.appendItemToGroup(item); model.appendItemToGroup(item);
model.saveBookmarks();
} }
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment