491 @param evt close event (QCloseEvent) |
491 @param evt close event (QCloseEvent) |
492 """ |
492 """ |
493 if self.__modified: |
493 if self.__modified: |
494 res = E5MessageBox.question( |
494 res = E5MessageBox.question( |
495 self, |
495 self, |
496 self.tr("eric5 Snapshot"), |
496 self.tr("eric6 Snapshot"), |
497 self.tr( |
497 self.tr( |
498 """The application contains an unsaved snapshot."""), |
498 """The application contains an unsaved snapshot."""), |
499 E5MessageBox.StandardButtons( |
499 E5MessageBox.StandardButtons( |
500 E5MessageBox.Abort | |
500 E5MessageBox.Abort | |
501 E5MessageBox.Discard | |
501 E5MessageBox.Discard | |
519 """ |
519 """ |
520 Private method to update the window caption. |
520 Private method to update the window caption. |
521 """ |
521 """ |
522 self.setWindowTitle("{0}[*] - {1}".format( |
522 self.setWindowTitle("{0}[*] - {1}".format( |
523 os.path.basename(self.__filename), |
523 os.path.basename(self.__filename), |
524 self.tr("eric5 Snapshot"))) |
524 self.tr("eric6 Snapshot"))) |
525 self.setWindowModified(self.__modified) |
525 self.setWindowModified(self.__modified) |
526 self.pathNameEdit.setText(os.path.dirname(self.__filename)) |
526 self.pathNameEdit.setText(os.path.dirname(self.__filename)) |