Fixed an issue enabling/disabling the global tools menu entry. release-2.1.1

Fri, 28 Aug 2015 12:02:13 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 28 Aug 2015 12:02:13 +0200
changeset 26
cc3c2bf329ca
parent 25
fd3d6ff6a09a
child 27
25e2d8cdae86

Fixed an issue enabling/disabling the global tools menu entry.

ChangeLog file | annotate | diff | comparison | revisions
PluginSelectionEncloser.py file | annotate | diff | comparison | revisions
PluginSelectionEncloser.zip file | annotate | diff | comparison | revisions
--- a/ChangeLog	Fri Aug 28 11:30:57 2015 +0200
+++ b/ChangeLog	Fri Aug 28 12:02:13 2015 +0200
@@ -1,5 +1,8 @@
 ChangeLog
 ---------
+Version 2.1.1:
+- bug fixes
+
 Version 2.1.0:
 - adaptation for the new plug-in tools menu handling
 
--- a/PluginSelectionEncloser.py	Fri Aug 28 11:30:57 2015 +0200
+++ b/PluginSelectionEncloser.py	Fri Aug 28 12:02:13 2015 +0200
@@ -24,7 +24,7 @@
 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
 autoactivate = True
 deactivateable = True
-version = "2.1.0"
+version = "2.1.1"
 className = "SelectionEncloserPlugin"
 packageName = "SelectionEncloser"
 shortDescription = "Enclose the selection with a string."
@@ -262,8 +262,8 @@
             act = menu.addMenu(self.__menu)
             act.setEnabled(editor is not None and editor.hasSelectedText())
         elif name == "PluginTools" and self.__mainActions:
-            self.__mainActions[-1].setEnabled(editor is not None and
-                                              editor.hasSelectedText())
+            self.__menu.setEnabled(editor is not None and
+                                   editor.hasSelectedText())
     
     def __editorOpened(self, editor):
         """
Binary file PluginSelectionEncloser.zip has changed

eric ide

mercurial