aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.py
diff options
context:
space:
mode:
authortassaron2017-07-11 06:06:22 -0400
committertassaron2017-07-11 06:06:22 -0400
commit2e37dafd7036973a315b525f131850a6fb6d0b35 (patch)
tree090e5b29c706f38945209e33161b4cc9713782f2 /src/mainwindow.py
parent4c3920e6309b4e67e3d8d809dd0b5b6cd245fd0c (diff)
fixed various bugs
Diffstat (limited to 'src/mainwindow.py')
-rw-r--r--src/mainwindow.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mainwindow.py b/src/mainwindow.py
index 3cd45d6..d21ba0a 100644
--- a/src/mainwindow.py
+++ b/src/mainwindow.py
@@ -713,6 +713,10 @@ class MainWindow(QtWidgets.QMainWindow):
def saveCurrentProject(self):
if self.currentProject:
self.core.createProjectFile(self.currentProject, self.window)
+ try:
+ os.remove(self.autosavePath)
+ except FileNotFoundError:
+ pass
self.updateWindowTitle()
else:
self.openSaveProjectDialog()