4772 else: |
4772 else: |
4773 self.inReopenPrompt = True |
4773 self.inReopenPrompt = True |
4774 msg = self.trUtf8(\ |
4774 msg = self.trUtf8(\ |
4775 """<p>The file <b>{0}</b> has been changed while it was opened in""" |
4775 """<p>The file <b>{0}</b> has been changed while it was opened in""" |
4776 """ eric5. Reread it?</p>""").format(self.fileName) |
4776 """ eric5. Reread it?</p>""").format(self.fileName) |
4777 default = QMessageBox.No |
4777 default = QMessageBox.Yes |
4778 if self.isModified(): |
4778 if self.isModified(): |
4779 msg += self.trUtf8(\ |
4779 msg += self.trUtf8(\ |
4780 """<br><b>Warning:</b> You will loose""" |
4780 """<br><b>Warning:</b> You will loose""" |
4781 """ your changes upon reopening it.""") |
4781 """ your changes upon reopening it.""") |
4782 default = QMessageBox.Ok |
4782 default = QMessageBox.No |
4783 res = QMessageBox.warning(None, |
4783 res = QMessageBox.warning(None, |
4784 self.trUtf8("File changed"), msg, |
4784 self.trUtf8("File changed"), msg, |
4785 QMessageBox.StandardButtons(\ |
4785 QMessageBox.StandardButtons(\ |
4786 QMessageBox.Yes | \ |
4786 QMessageBox.Yes | \ |
4787 QMessageBox.No), |
4787 QMessageBox.No), |