5711 """ |
5711 """ |
5712 try: |
5712 try: |
5713 newWin, editor = self.getEditor( |
5713 newWin, editor = self.getEditor( |
5714 fn, filetype=filetype, addNext=addNext, indexes=indexes |
5714 fn, filetype=filetype, addNext=addNext, indexes=indexes |
5715 ) |
5715 ) |
5716 except (OSError, UnicodeDecodeError) as err: |
5716 except (OSError, UnicodeDecodeError): |
5717 print(str(err)) |
|
5718 return None |
5717 return None |
5719 |
5718 |
5720 if newWin: |
5719 if newWin: |
5721 self._modificationStatusChanged(editor.isModified(), editor) |
5720 self._modificationStatusChanged(editor.isModified(), editor) |
5722 self._checkActions(editor) |
5721 self._checkActions(editor) |
8102 self, |
8101 self, |
8103 self.tr("File System Watcher Error"), |
8102 self.tr("File System Watcher Error"), |
8104 self.tr( |
8103 self.tr( |
8105 "The file system watcher reported an error with code <b>{0}</b>." |
8104 "The file system watcher reported an error with code <b>{0}</b>." |
8106 "</p><p>Error Message: {1}</p>" |
8105 "</p><p>Error Message: {1}</p>" |
8107 ).format(errno, strerror) |
8106 ).format(errno, strerror), |
8108 ) |
8107 ) |
8109 |
8108 |
8110 def addWatchedFilePath(self, filePath): |
8109 def addWatchedFilePath(self, filePath): |
8111 """ |
8110 """ |
8112 Public method to add a file to the list of monitored files. |
8111 Public method to add a file to the list of monitored files. |