4541 @return list of all opened filenames (list of strings) |
4541 @return list of all opened filenames (list of strings) |
4542 """ |
4542 """ |
4543 filenames = [] |
4543 filenames = [] |
4544 for editor in self.editors: |
4544 for editor in self.editors: |
4545 fn = editor.getFileName() |
4545 fn = editor.getFileName() |
4546 if fn is not None and fn not in filenames: |
4546 if fn is not None and fn not in filenames and os.path.exists(fn): |
|
4547 # only return names of existing files |
4547 filenames.append(fn) |
4548 filenames.append(fn) |
4548 |
4549 |
4549 return filenames |
4550 return filenames |
4550 |
4551 |
4551 def getEditor(self, fn, filetype=""): |
4552 def getEditor(self, fn, filetype=""): |