diff options
| author | Adrien Tétar | 2015-10-11 12:25:11 +0200 | 
|---|---|---|
| committer | Adrien Tétar | 2015-10-11 12:25:11 +0200 | 
| commit | a80988874c5d621a2b11c75f5af31b23d3008ee7 (patch) | |
| tree | ebfab62995527dd24924ffbec0ab349072ddabb9 /Lib/defconQt/glyphCollectionView.py | |
| parent | ea6b465a799c397227c74c4da74d7cf636a088e4 (diff) | |
| download | trufont-a80988874c5d621a2b11c75f5af31b23d3008ee7.tar.bz2 | |
meta: default to empty font, fixture
Diffstat (limited to 'Lib/defconQt/glyphCollectionView.py')
| -rw-r--r-- | Lib/defconQt/glyphCollectionView.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/Lib/defconQt/glyphCollectionView.py b/Lib/defconQt/glyphCollectionView.py index 81d35f9..37edb45 100644 --- a/Lib/defconQt/glyphCollectionView.py +++ b/Lib/defconQt/glyphCollectionView.py @@ -359,7 +359,7 @@ class GlyphCollectionWidget(QWidget):          if event.button() == Qt.LeftButton:              event.accept()              index = self._findEventIndex(event) -            if self.doubleClickCallback is not None: +            if index is not None and self.doubleClickCallback is not None:                  self.doubleClickCallback(self._glyphs[index])          else:              super(GlyphCollectionWidget, self).mousePressEvent(event) | 
