aboutsummaryrefslogtreecommitdiff
path: root/mainwindow.py
diff options
context:
space:
mode:
Diffstat (limited to 'mainwindow.py')
-rw-r--r--mainwindow.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/mainwindow.py b/mainwindow.py
index fb9ebfd..0d6b130 100644
--- a/mainwindow.py
+++ b/mainwindow.py
@@ -301,7 +301,9 @@ class MainWindow(QtCore.QObject):
def autosaveExists(self):
if self.currentProject and os.path.exists(self.autosavePath) \
and filecmp.cmp(self.autosavePath, self.currentProject):
- return True
+ with open(self.autosavePath, 'r') as f:
+ p = [line for line in f]
+ return True if len(p) > 1 else False
else:
return False