511 project.checkDirty() |
511 project.checkDirty() |
512 continue |
512 continue |
513 elif os.path.isfile(nam): |
513 elif os.path.isfile(nam): |
514 editor = e5App().getObject("ViewManager").getOpenEditor(nam) |
514 editor = e5App().getObject("ViewManager").getOpenEditor(nam) |
515 if editor: |
515 if editor: |
516 ok &= editor.checkDirty() |
516 ok &= editor.checkDirty() |
517 if not ok: |
517 if not ok: |
518 break |
518 break |
519 |
519 |
520 if not ok: |
520 if not ok: |
521 res = E5MessageBox.yesNo(self.__ui, |
521 res = E5MessageBox.yesNo(self.__ui, |
522 self.trUtf8("Commit Changes"), |
522 self.trUtf8("Commit Changes"), |
523 self.trUtf8("""The commit affects files, that have unsaved""" |
523 self.trUtf8("""The commit affects files, that have unsaved""" |
524 """ changes. Shall the commit be continued?"""), |
524 """ changes. Shall the commit be continued?"""), |
525 icon = E5MessageBox.Warning) |
525 icon=E5MessageBox.Warning) |
526 if not res: |
526 if not res: |
527 return |
527 return |
528 |
528 |
529 if self.__commitDialog is not None: |
529 if self.__commitDialog is not None: |
530 msg = self.__commitDialog.logMessage() |
530 msg = self.__commitDialog.logMessage() |