aboutsummaryrefslogtreecommitdiffstats
path: root/Lib/defconQt/fontView.py
diff options
context:
space:
mode:
authorAdrien Tétar2015-10-31 22:36:03 +0100
committerAdrien Tétar2015-10-31 22:36:03 +0100
commit6dcb0661509df337cc1e5da6067e4c9a2376b923 (patch)
tree3c15ff2962eb3c0f6104984015d90dc5fbe206ca /Lib/defconQt/fontView.py
parent6f131223c6821651dbd97c0c6aaff8aa1e6b90b2 (diff)
downloadtrufont-6dcb0661509df337cc1e5da6067e4c9a2376b923.tar.bz2
glyphCollectionView: tiny improvements to the selection system
Diffstat (limited to 'Lib/defconQt/fontView.py')
-rw-r--r--Lib/defconQt/fontView.py4
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):