Introduced a little change to prevent a sorting issue when building the toolbars menu.

Mon, 15 Aug 2016 16:27:49 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 15 Aug 2016 16:27:49 +0200
changeset 5092
d983e6405e45
parent 5091
dfac14826e78
child 5094
c34cabcfdb72

Introduced a little change to prevent a sorting issue when building the toolbars menu.

UI/UserInterface.py file | annotate | diff | comparison | revisions
--- a/UI/UserInterface.py	Thu Aug 11 16:13:37 2016 +0200
+++ b/UI/UserInterface.py	Mon Aug 15 16:27:49 2016 +0200
@@ -3543,7 +3543,7 @@
         for name, (text, tb) in list(self.__toolbars.items()):
             tbList.append((text, tb, name))
         
-        for text, tb, name in sorted(tbList):
+        for text, tb, name in sorted(tbList, key=lambda t: t[0]):
             act = menu.addAction(text)
             act.setCheckable(True)
             act.setChecked(not tb.isHidden())

eric ide

mercurial