eric6/E5XML/SessionWriter.py

branch
jsonfiles
changeset 8009
29818ac4853c
parent 7960
e8fc383322f7
child 8010
7ce2b8bb0d9b
--- a/eric6/E5XML/SessionWriter.py	Mon Jan 25 20:07:51 2021 +0100
+++ b/eric6/E5XML/SessionWriter.py	Wed Jan 27 15:09:20 2021 +0100
@@ -110,7 +110,7 @@
         self.writeEndElement()
         
         aw = self.vm.getActiveName()
-        if aw and self.project.isProjectFile(aw):
+        if aw and (isGlobal or self.project.isProjectFile(aw)):
             ed = self.vm.getOpenEditor(aw)
             line, index = ed.getCursorPosition()
             self.writeStartElement("ActiveWindow")

eric ide

mercurial