summaryrefslogtreecommitdiff
path: root/src/main/python/main.py
diff options
context:
space:
mode:
authorBlaine2020-04-25 09:26:37 +0530
committerBlaine2020-04-25 09:26:37 +0530
commit73e4e7fc107b2df628a2195a93f2966561021718 (patch)
treed035e3f444ce73d795fdc3408274072183777f4c /src/main/python/main.py
parent5860a05ba2f804815c704f0a14ea74fe11b20771 (diff)
downloadChemical-PFD-73e4e7fc107b2df628a2195a93f2966561021718.tar.gz
Chemical-PFD-73e4e7fc107b2df628a2195a93f2966561021718.tar.bz2
Chemical-PFD-73e4e7fc107b2df628a2195a93f2966561021718.zip
fixed edge case for close event
Diffstat (limited to 'src/main/python/main.py')
-rw-r--r--src/main/python/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/python/main.py b/src/main/python/main.py
index 66748cc..0e29d88 100644
--- a/src/main/python/main.py
+++ b/src/main/python/main.py
@@ -124,7 +124,7 @@ class appWindow(QMainWindow):
@property
def activeFiles(self):
- return filter(lambda x: x.tabCount()>=1, self.mdi.subWindowList())
+ return [i for i in self.mdi.subWindowList() if i.tabCount]
if __name__ == '__main__':
app = ApplicationContext() # 1. Instantiate ApplicationContext