]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Save bookmarks when adding them via the context menu.
authorEmmanuel Pescosta <emmanuelpescosta099@gmail.com>
Sat, 21 Mar 2015 16:39:20 +0000 (17:39 +0100)
committerEmmanuel Pescosta <emmanuelpescosta099@gmail.com>
Sat, 21 Mar 2015 16:39:20 +0000 (17:39 +0100)
CCBUG: 345347
REVIEW: 123080

src/dolphincontextmenu.cpp

index 27ad19924ccfb4e598a3e9be1378a04523aa5ee8..af283cf009f7e6d17a017d0e0df922d5127af7f6 100644 (file)
@@ -305,6 +305,7 @@ void DolphinContextMenu::openItemContextMenu()
                 const QString text = selectedUrl.fileName();
                 PlacesItem* item = model.createPlacesItem(text, selectedUrl);
                 model.appendItemToGroup(item);
+                model.saveBookmarks();
             }
         } else if (activatedAction == openParentAction) {
             m_command = OpenParentFolder;
@@ -370,6 +371,7 @@ void DolphinContextMenu::openViewportContextMenu()
             PlacesItem* item = model.createPlacesItem(container->placesText(),
                                                       container->url());
             model.appendItemToGroup(item);
+            model.saveBookmarks();
         }
     }
 }