diff options
| author | Adrien Tétar | 2015-05-27 09:52:13 +0200 | 
|---|---|---|
| committer | Adrien Tétar | 2015-05-27 09:52:13 +0200 | 
| commit | 06ded77b45772ecb0f52708c5629a94bde40da09 (patch) | |
| tree | 9beeafe7d722f8ef39f71ff39b0b6f751e86773b /Lib/defconQt/spacecenter.py | |
| parent | 70df6989b0fef38cb23565d02dc66353845625d9 (diff) | |
| download | trufont-06ded77b45772ecb0f52708c5629a94bde40da09.tar.bz2 | |
Fixes a notification loop in sp.center
Diffstat (limited to 'Lib/defconQt/spacecenter.py')
| -rw-r--r-- | Lib/defconQt/spacecenter.py | 6 | 
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/defconQt/spacecenter.py b/Lib/defconQt/spacecenter.py index 6c15152..8fa776d 100644 --- a/Lib/defconQt/spacecenter.py +++ b/Lib/defconQt/spacecenter.py @@ -60,9 +60,7 @@ class MainSpaceWindow(QWidget):          self._subscribeToGlyphsText(newText)          # set the records into the view          self.canvas._glyphsChanged(self.glyphs) -        #self.table.blockSignals(True) # XXX: needed?          self.table._glyphsChanged(self.glyphs) -        #self.table.blockSignals(False)      # Tal Leming. Edited.      def textToGlyphNames(self, text): @@ -137,9 +135,7 @@ class MainSpaceWindow(QWidget):          glyphNames = []          for glyph in glyphs:              glyphNames.append(chr(glyph.unicode) if glyph.unicode else "".join(("/", glyph.name, " "))) -        self.toolbar.textField.blockSignals(True) # XXX: needed?          self.toolbar.textField.setText("".join(glyphNames)) -        self.toolbar.textField.blockSignals(False)          # set the records into the view          self.canvas._glyphsChanged(self.glyphs)          self.table._glyphsChanged(self.glyphs) @@ -290,7 +286,9 @@ class SpaceTable(QTableWidget):      def _glyphsChanged(self, newGlyphs):          self.glyphs = newGlyphs          # TODO: we don't need to reallocate cells, split alloc and fill +        self.blockSignals(True)          self.fillGlyphs() +        self.blockSignals(False)      def _cellEdited(self, row, col):          if row == 0 or col == 0: return  | 
