From 4de39ebe0782fbd68b5fcc31e0466e76e145e712 Mon Sep 17 00:00:00 2001 From: tassaron Date: Fri, 16 Jun 2017 20:01:27 -0400 Subject: color component size, position, and gradient options --- mainwindow.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mainwindow.py') 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 -- cgit v1.2.3