Little enhancement to the editor context menu to enable the Tools submenu only, if it contains some entries (populated by plug-ins). 6_0_x

Wed, 19 Aug 2015 11:00:48 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 19 Aug 2015 11:00:48 +0200
branch
6_0_x
changeset 4377
4bae1fa50c68
parent 4375
12817b378138
child 4379
2fadbed7d297

Little enhancement to the editor context menu to enable the Tools submenu only, if it contains some entries (populated by plug-ins).
(grafted from 7847a37ee71db8d14ae6aa208c4c521f450c6942)

QScintilla/Editor.py file | annotate | diff | comparison | revisions
--- a/QScintilla/Editor.py	Mon Aug 17 13:17:39 2015 +0200
+++ b/QScintilla/Editor.py	Wed Aug 19 11:00:48 2015 +0200
@@ -4766,6 +4766,8 @@
             self.menuActs["NewSplit"].setIcon(
                 UI.PixmapCache.getIcon("splitVertical.png"))
         
+        self.menuActs["Tools"].setEnabled(not self.toolsMenu.isEmpty())
+        
         self.showMenu.emit("Main", self.menu, self)
         
     def __showContextMenuAutocompletion(self):

eric ide

mercurial