447 project.checkDirty() |
447 project.checkDirty() |
448 continue |
448 continue |
449 elif os.path.isfile(nam): |
449 elif os.path.isfile(nam): |
450 editor = e5App().getObject("ViewManager").getOpenEditor(nam) |
450 editor = e5App().getObject("ViewManager").getOpenEditor(nam) |
451 if editor: |
451 if editor: |
452 ok &= editor.checkDirty() |
452 ok &= editor.checkDirty() |
453 if not ok: |
453 if not ok: |
454 break |
454 break |
455 |
455 |
456 if not ok: |
456 if not ok: |
457 res = E5MessageBox.yesNo(self.__ui, |
457 res = E5MessageBox.yesNo(self.__ui, |
458 self.trUtf8("Commit Changes"), |
458 self.trUtf8("Commit Changes"), |
459 self.trUtf8("""The commit affects files, that have unsaved""" |
459 self.trUtf8("""The commit affects files, that have unsaved""" |
460 """ changes. Shall the commit be continued?"""), |
460 """ changes. Shall the commit be continued?"""), |
461 icon = E5MessageBox.Warning) |
461 icon=E5MessageBox.Warning) |
462 if not res: |
462 if not res: |
463 return |
463 return |
464 |
464 |
465 if self.__commitDialog is not None: |
465 if self.__commitDialog is not None: |
466 msg = self.__commitDialog.logMessage() |
466 msg = self.__commitDialog.logMessage() |