diff options
-rw-r--r-- | src/main/python/main.py | 2 |
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 |