--- 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): """