diff options
| author | Adrien Tétar | 2015-10-21 14:38:30 +0200 |
|---|---|---|
| committer | Adrien Tétar | 2015-10-21 14:38:30 +0200 |
| commit | ccc7fc31a00eff112d647c06401f8c4819ebdac6 (patch) | |
| tree | 358a9b1e549543d024a90515b741b44ce53bd2c4 /Lib/defconQt/groupsView.py | |
| parent | be72e9780959796ed0bd536edd4a34eb26f9ce35 (diff) | |
| parent | 6c63f6679ca460b88cb4f2b42183f0ce010a0fc9 (diff) | |
| download | trufont-ccc7fc31a00eff112d647c06401f8c4819ebdac6.tar.bz2 | |
Merge pull request #43 from adrientetar/patch-2
glyphCollectionView: fix scroll/ptSize/insert, fontView: sort tooltip
Diffstat (limited to 'Lib/defconQt/groupsView.py')
| -rw-r--r-- | Lib/defconQt/groupsView.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/defconQt/groupsView.py b/Lib/defconQt/groupsView.py index d52a0c5..3a4f959 100644 --- a/Lib/defconQt/groupsView.py +++ b/Lib/defconQt/groupsView.py @@ -131,6 +131,7 @@ class GroupCollectionWidget(GlyphCollectionWidget): super(GroupCollectionWidget, self).pipeDropEvent(event) elif self.characterDropCallback is not None: self.characterDropCallback(event) + self.currentDropIndex = None class GroupsWindow(QWidget): @@ -275,7 +276,9 @@ class GroupsWindow(QWidget): # Due to defcon limitations, we must fetch and update for the # notification to pass through currentGroupList = self.font.groups[currentGroup] - currentGroupList.append(gName) + # TODO: decouple better + index = self.collectionWidget.currentDropIndex + currentGroupList.insert(index, gName) self.font.groups[currentGroup] = currentGroupList event.acceptProposedAction() self._groupChanged() |
