From fd3c77a435982b82de5fa55f18a814c9644aec30 Mon Sep 17 00:00:00 2001 From: Blaine Date: Sat, 25 Apr 2020 09:34:09 +0530 Subject: missed file close conditions --- src/main/python/utils/canvas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/python/utils/canvas.py') diff --git a/src/main/python/utils/canvas.py b/src/main/python/utils/canvas.py index db72f05..270cf17 100644 --- a/src/main/python/utils/canvas.py +++ b/src/main/python/utils/canvas.py @@ -209,7 +209,7 @@ class fileWindow(QMdiSubWindow): return False def closeEvent(self, event): - if self.tabCount or self.saveEvent(): + if self.tabCount==0 or self.saveEvent(): event.accept() self.deleteLater() else: -- cgit