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

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 15 Aug 2016 16:27:49 +0200
branch
6_1_x
changeset 5093
7adeb9ded17d
parent 5090
1b6bdd2a5e88
child 5095
49cb6d2eb6a7

Introduced a little change to prevent a sorting issue when building the toolbars menu.
(grafted from d983e6405e4528f751907f224fd8605e0cee92f4)

UI/UserInterface.py file | annotate | diff | comparison | revisions
--- a/UI/UserInterface.py	Wed Aug 10 16:25:14 2016 +0200
+++ b/UI/UserInterface.py	Mon Aug 15 16:27:49 2016 +0200
@@ -3489,7 +3489,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