5387 """ |
5387 """ |
5388 if editor.isModified(): |
5388 if editor.isModified(): |
5389 fn = editor.getFileName() |
5389 fn = editor.getFileName() |
5390 # ignore the dirty status, if there is more than one open editor |
5390 # ignore the dirty status, if there is more than one open editor |
5391 # for the same file |
5391 # for the same file |
5392 if fn and self.getOpenEditorCount(fn) > 1: |
5392 if fn and self.getOpenEditorCount(fn) > 1 and not autosave: |
5393 return True |
5393 return True |
5394 |
5394 |
5395 if fn is None: |
5395 if fn is None: |
5396 fn = editor.getNoName() |
5396 fn = editor.getNoName() |
5397 autosave = False |
5397 autosave = False |