--- a/eric6/Templates/TemplateViewer.py Tue Apr 13 18:02:59 2021 +0200 +++ b/eric6/Templates/TemplateViewer.py Tue Apr 13 19:59:17 2021 +0200 @@ -513,10 +513,7 @@ Private slot to handle the Edit context menu action. """ itm = self.currentItem() - if isinstance(itm, TemplateEntry): - editGroup = False - else: - editGroup = True + editGroup = not isinstance(itm, TemplateEntry) from .TemplatePropertiesDialog import TemplatePropertiesDialog dlg = TemplatePropertiesDialog(self, editGroup, itm)