aboutsummaryrefslogtreecommitdiff
path: root/mainwindow.py
diff options
context:
space:
mode:
authortassaron2017-06-16 20:01:27 -0400
committertassaron2017-06-16 20:01:27 -0400
commit4de39ebe0782fbd68b5fcc31e0466e76e145e712 (patch)
tree156b0c4eafceefaf85fc8ce9178b9b9024354312 /mainwindow.py
parent4b1058781d39ea3e43197c559dd3631bae42b66b (diff)
color component size, position, and gradient options
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