Fixed an issue in the editor that can lead to an endless loop.

Wed, 02 May 2012 19:10:17 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 02 May 2012 19:10:17 +0200
changeset 1831
2dd263d670ca
parent 1830
f2fccb8c2ab4
child 1833
f7cd855680f1
child 1834
c75dffbf8458

Fixed an issue in the editor that can lead to an endless loop.

QScintilla/Editor.py file | annotate | diff | comparison | revisions
--- a/QScintilla/Editor.py	Tue May 01 18:01:13 2012 +0200
+++ b/QScintilla/Editor.py	Wed May 02 19:10:17 2012 +0200
@@ -5363,10 +5363,10 @@
            not self.inReopenPrompt and self.fileName and \
            QFileInfo(self.fileName).lastModified().toString() != \
                 self.lastModified.toString():
+            self.inReopenPrompt = True
             if Preferences.getEditor("AutoReopen") and not self.isModified():
                 self.refresh()
             else:
-                self.inReopenPrompt = True
                 msg = self.trUtf8(
                     """<p>The file <b>{0}</b> has been changed while it was opened in"""
                     """ eric5. Reread it?</p>""").format(self.fileName)
@@ -5385,7 +5385,7 @@
                 else:
                     # do not prompt for this change again...
                     self.lastModified = QFileInfo(self.fileName).lastModified()
-                self.inReopenPrompt = False
+            self.inReopenPrompt = False
         
         self.setCursorFlashTime(QApplication.cursorFlashTime())
         

eric ide

mercurial