diff options
Diffstat (limited to 'Lib/defconQt/fontView.py')
| -rw-r--r-- | Lib/defconQt/fontView.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/defconQt/fontView.py b/Lib/defconQt/fontView.py index 198e8d9..5eebd8d 100644 --- a/Lib/defconQt/fontView.py +++ b/Lib/defconQt/fontView.py @@ -91,6 +91,8 @@ class Application(QApplication): return self._currentGlyph = glyph self.currentGlyphChanged.emit() + if self._currentGlyph is None: + return # update currentMainWindow if we need to. # XXX: find a way to update currentMainWindow when we switch to any # child of a MainWindow instead of the MainWindow itself. @@ -1054,7 +1056,7 @@ class MainWindow(QMainWindow): if glyph not in glyphs: glyphs.append(glyph) else: - glyphs = self._font[:] + glyphs = list(self._font) self.collectionWidget.glyphs = glyphs def _glyphOpened(self, glyph): |
