eric7/QScintilla/Editor.py

branch
eric7
changeset 9186
0c28a1670e06
parent 9153
506e35e424d5
child 9192
a763d57e23bc
child 9199
831e08e94960
--- a/eric7/QScintilla/Editor.py	Mon Jun 27 17:13:05 2022 +0200
+++ b/eric7/QScintilla/Editor.py	Mon Jun 27 18:05:36 2022 +0200
@@ -3233,7 +3233,7 @@
             self.extractTasks()
             
             self.setModified(modified)
-            self.lastModified = pathlib.Path(self.fileName).stat().st_mtime
+            self.lastModified = pathlib.Path(fn).stat().st_mtime
     
     def __convertTabs(self):
         """
@@ -3484,7 +3484,7 @@
                 
                 self.setLanguage(self.fileName)
             
-            self.lastModified = pathlib.Path(self.fileName).stat().st_mtime
+            self.lastModified = pathlib.Path(fn).stat().st_mtime
             if newName is not None:
                 self.vm.addToRecentList(newName)
             self.editorSaved.emit(self.fileName)
@@ -3525,7 +3525,7 @@
         if self.lexer_ is None:
             self.setLanguage(self.fileName)
         
-        self.lastModified = pathlib.Path(self.fileName).stat().st_mtime
+        self.lastModified = pathlib.Path(fn).stat().st_mtime
         self.vm.setEditorName(self, self.fileName)
         self.__updateReadOnly(True)
         

eric ide

mercurial