Skip to content
Snippets Groups Projects
Commit 4b91efce authored by Mohamed, Fawzi Roberto (fawzi)'s avatar Mohamed, Fawzi Roberto (fawzi)
Browse files

fix access of section from onClose for real

parent e0f746a9
No related branches found
No related tags found
No related merge requests found
......@@ -110,7 +110,7 @@ class CachingSectionManager(object):
self.openSections[gIndex] = CachingSection(gIndex, references, storeInSuper = self.storeInSuper)
def closeSection(self, backend, gIndex):
toClose = self.openSections[-1]
toClose = self.openSections[gIndex]
for onCloseF in self.onClose:
onCloseF(backend, gIndex, toClose)
if toClose.storeInSuper:
......@@ -124,7 +124,7 @@ class CachingSectionManager(object):
backend.parsingSession.addSubsection(self.metaInfo, toClose)
if self.forwardOpenClose and backend.superBackend:
backend.superBackend.closeSection(self.metaInfo.name, gIndex)
self.openSections.remove(toClose)
del self.openSections[gIndex]
def openSectionInfo(self, gIndex):
section = openSections.get(gIndex, None)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment