From 73e4e7fc107b2df628a2195a93f2966561021718 Mon Sep 17 00:00:00 2001 From: Blaine Date: Sat, 25 Apr 2020 09:26:37 +0530 Subject: fixed edge case for close event --- src/main/python/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main') 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 -- cgit