aboutsummaryrefslogtreecommitdiffstats
path: root/Lib/defconQt/fontView.py
diff options
context:
space:
mode:
authorAdrien Tétar2015-10-31 22:41:53 +0100
committerAdrien Tétar2015-10-31 22:41:53 +0100
commit93a75dd640d235b3248c0bd5b190f00499ff7078 (patch)
tree3c15ff2962eb3c0f6104984015d90dc5fbe206ca /Lib/defconQt/fontView.py
parent44e6a231125c4103d8dc8edbb200ce2f327f1e31 (diff)
parent6dcb0661509df337cc1e5da6067e4c9a2376b923 (diff)
downloadtrufont-93a75dd640d235b3248c0bd5b190f00499ff7078.tar.bz2
Merge pull request #105 from trufont/patch-12
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):