diff options
| author | Adrien Tétar | 2015-09-26 14:09:23 +0200 |
|---|---|---|
| committer | Adrien Tétar | 2015-09-26 14:09:23 +0200 |
| commit | 6bc7a3b1aa0775b63fd72f797c8c0e39f5db9856 (patch) | |
| tree | 9f73290952cef5ead63392670ec27ce67a5fa3dc /Lib/defconQt/fontView.py | |
| parent | 469a97e5f809d5a29e12bd47005ba2efc7a6d06b (diff) | |
| download | trufont-6bc7a3b1aa0775b63fd72f797c8c0e39f5db9856.tar.bz2 | |
fontView: implement sortFont when adding glyphs
Diffstat (limited to 'Lib/defconQt/fontView.py')
| -rw-r--r-- | Lib/defconQt/fontView.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/defconQt/fontView.py b/Lib/defconQt/fontView.py index dde0793..37dc106 100644 --- a/Lib/defconQt/fontView.py +++ b/Lib/defconQt/fontView.py @@ -597,10 +597,12 @@ class MainWindow(QMainWindow): newGlyphNames, sortFont, ok = AddGlyphDialog.getNewGlyphNames(self, glyphs) if ok: for name in newGlyphNames: - # XXX: if sortFont self.newStandardGlyph(name) glyphs.append(self.font[name]) self.collectionWidget.glyphs = glyphs + if sortFont: + # kick-in the sort mechanism + self.sortDescriptor = self.sortDescriptor def about(self): QMessageBox.about(self, "About Me", |
