summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBlaine2020-04-25 09:34:09 +0530
committerBlaine2020-04-25 09:34:09 +0530
commitfd3c77a435982b82de5fa55f18a814c9644aec30 (patch)
tree4fbc48ae7f9c69145c0672bcdeda43a9babb3759 /src
parentc05d821f561fc417349a0bf95e4ca95668ff1065 (diff)
downloadChemical-PFD-fd3c77a435982b82de5fa55f18a814c9644aec30.tar.gz
Chemical-PFD-fd3c77a435982b82de5fa55f18a814c9644aec30.tar.bz2
Chemical-PFD-fd3c77a435982b82de5fa55f18a814c9644aec30.zip
missed file close conditions
Diffstat (limited to 'src')
-rw-r--r--src/main/python/utils/canvas.py2
1 files changed, 1 insertions, 1 deletions
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: