Corrected logic related to rereading a file after an external change.

Fri, 12 Feb 2010 18:48:21 +0000

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 12 Feb 2010 18:48:21 +0000
changeset 109
9c72858d4b7a
parent 108
03d3adf59bde
child 110
c9a969db1469

Corrected logic related to rereading a file after an external change.

QScintilla/Editor.py file | annotate | diff | comparison | revisions
--- a/QScintilla/Editor.py	Mon Feb 08 18:16:15 2010 +0000
+++ b/QScintilla/Editor.py	Fri Feb 12 18:48:21 2010 +0000
@@ -4774,12 +4774,12 @@
                 msg = self.trUtf8(\
                     """<p>The file <b>{0}</b> has been changed while it was opened in"""
                     """ eric5. Reread it?</p>""").format(self.fileName)
-                default = QMessageBox.No
+                default = QMessageBox.Yes
                 if self.isModified():
                     msg += self.trUtf8(\
                         """<br><b>Warning:</b> You will loose"""
                         """ your changes upon reopening it.""")
-                    default = QMessageBox.Ok
+                    default = QMessageBox.No
                 res = QMessageBox.warning(None,
                     self.trUtf8("File changed"), msg,
                     QMessageBox.StandardButtons(\

eric ide

mercurial