diff options
| author | Adrien Tétar | 2015-10-03 21:34:13 +0200 | 
|---|---|---|
| committer | Adrien Tétar | 2015-10-03 21:34:13 +0200 | 
| commit | c898a4d61fbaf10d9f8a989b58c028ad3a271157 (patch) | |
| tree | 1b83b1d94bc8a1db9845f2be125c2827116068f0 /Lib/defconQt/glyphView.py | |
| parent | c9b4454c3296c8096873fef371221ba5ac8972d7 (diff) | |
| download | trufont-c898a4d61fbaf10d9f8a989b58c028ad3a271157.tar.bz2 | |
fontView,…: some refactorings and nits
Diffstat (limited to 'Lib/defconQt/glyphView.py')
| -rw-r--r-- | Lib/defconQt/glyphView.py | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/Lib/defconQt/glyphView.py b/Lib/defconQt/glyphView.py index e33ca99..fe340d1 100644 --- a/Lib/defconQt/glyphView.py +++ b/Lib/defconQt/glyphView.py @@ -208,13 +208,13 @@ class MainGfxWindow(QMainWindow):          self.adjustSize()          self.setContextMenuPolicy(Qt.ActionsContextMenu) -        createAnchorAction = QAction("Add Anchor Point", self) +        createAnchorAction = QAction("Add Anchor…", self)          createAnchorAction.triggered.connect(self.view.createAnchor)          self.addAction(createAnchorAction) -    def close(self): +    def closeEvent(self, event):          self.view._glyph.removeObserver(self, "Glyph.Changed") -        super(MainGfxWindow, self).close() +        event.accept()      def _glyphChanged(self, notification):          self.view._glyphChanged(notification) | 
