378 """ |
378 """ |
379 Public method to import bookmarks. |
379 Public method to import bookmarks. |
380 """ |
380 """ |
381 from .BookmarksImportDialog import BookmarksImportDialog |
381 from .BookmarksImportDialog import BookmarksImportDialog |
382 dlg = BookmarksImportDialog() |
382 dlg = BookmarksImportDialog() |
383 if dlg.exec_() == QDialog.Accepted: |
383 if dlg.exec() == QDialog.Accepted: |
384 importRootNode = dlg.getImportedBookmarks() |
384 importRootNode = dlg.getImportedBookmarks() |
385 if importRootNode is not None: |
385 if importRootNode is not None: |
386 self.addBookmark(self.menu(), importRootNode) |
386 self.addBookmark(self.menu(), importRootNode) |
387 |
387 |
388 def exportBookmarks(self): |
388 def exportBookmarks(self): |