diff options
| author | tassaron | 2017-06-14 17:36:46 -0400 |
|---|---|---|
| committer | tassaron | 2017-06-14 17:36:46 -0400 |
| commit | 807e37bddd16cb8fa195a220d415cb4bedb1364b (patch) | |
| tree | 65df651d0fd30a4e3713c66cf74a51be7f9ea9b3 /mainwindow.py | |
| parent | 2ad14b7d6ca9216bcdc72c5e13937fcbccc887a3 (diff) | |
no keyerror when opening new preset
Diffstat (limited to 'mainwindow.py')
| -rw-r--r-- | mainwindow.py | 2 |
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]) |
