770 being edited and has unsaved modification, they can be saved or the |
770 being edited and has unsaved modification, they can be saved or the |
771 operation may be aborted. |
771 operation may be aborted. |
772 |
772 |
773 @param name file/directory name to be diffed (string) |
773 @param name file/directory name to be diffed (string) |
774 """ |
774 """ |
775 if isinstance(name, list): |
775 names = name[:] if isinstance(name, list) else [name] |
776 names = name[:] |
|
777 else: |
|
778 names = [name] |
|
779 for nam in names: |
776 for nam in names: |
780 if os.path.isfile(nam): |
777 if os.path.isfile(nam): |
781 editor = e5App().getObject("ViewManager").getOpenEditor(nam) |
778 editor = e5App().getObject("ViewManager").getOpenEditor(nam) |
782 if editor and not editor.checkDirty(): |
779 if editor and not editor.checkDirty(): |
783 return |
780 return |