116 self._error = True |
116 self._error = True |
117 self._errorString = self.trUtf8("File '{0}' cannot be read.\nReason: {1}")\ |
117 self._errorString = self.trUtf8("File '{0}' cannot be read.\nReason: {1}")\ |
118 .format(self.__fileName, str(err)) |
118 .format(self.__fileName, str(err)) |
119 return None |
119 return None |
120 |
120 |
121 importRootNode = BookmarkNode(BookmarkNode.Root) |
121 importRootNode = BookmarkNode(BookmarkNode.Folder) |
122 if contents["version"] == 1: |
122 if contents["version"] == 1: |
123 self.__processRoots(contents["roots"], importRootNode) |
123 self.__processRoots(contents["roots"], importRootNode) |
124 |
124 |
125 importRootNode.setType(BookmarkNode.Folder) |
|
126 if self._id == "chrome": |
125 if self._id == "chrome": |
127 importRootNode.title = self.trUtf8("Google Chrome Import") |
126 importRootNode.title = self.trUtf8("Google Chrome Import") |
128 elif self._id == "chromium": |
127 elif self._id == "chromium": |
129 importRootNode.title = self.trUtf8("Chromium Import") |
128 importRootNode.title = self.trUtf8("Chromium Import") |
130 else: |
129 else: |