diff options
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) |
