diff options
Diffstat (limited to 'src/main/python/main.py')
-rw-r--r-- | src/main/python/main.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/python/main.py b/src/main/python/main.py index 9def7fb..42b4e48 100644 --- a/src/main/python/main.py +++ b/src/main/python/main.py @@ -143,7 +143,7 @@ class appWindow(QMainWindow): def closeEvent(self, event): #save alert on window close if len(self.activeFiles) and not dialogs.saveEvent(self): - event.ignore() + event.ignore() else: event.accept() self.writeSettings() @@ -184,7 +184,7 @@ class appWindow(QMainWindow): #Key input handler def keyPressEvent(self, event): #overload key press event for custom keyboard shortcuts - if event.modifiers() and Qt.ControlModifier: + if event.modifiers() & Qt.ControlModifier: if event.key() == Qt.Key_N: self.newProject() |