aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortassaron2017-06-14 17:36:46 -0400
committertassaron2017-06-14 17:36:46 -0400
commit807e37bddd16cb8fa195a220d415cb4bedb1364b (patch)
tree65df651d0fd30a4e3713c66cf74a51be7f9ea9b3
parent2ad14b7d6ca9216bcdc72c5e13937fcbccc887a3 (diff)
no keyerror when opening new preset
-rw-r--r--mainwindow.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mainwindow.py b/mainwindow.py
index 3ea4f58..4b2d567 100644
--- a/mainwindow.py
+++ b/mainwindow.py
@@ -239,7 +239,7 @@ class MainWindow(QtCore.QObject):
def updateComponentTitle(self, pos, presetStore=False):
if type(presetStore) == dict:
name = presetStore['preset']
- if name == None:
+ if name == None or name not in self.core.savedPresets:
modified = False
else:
modified = (presetStore != self.core.savedPresets[name])