eric6/Templates/TemplateViewer.py

changeset 8235
78e6d29eb773
parent 8227
349308e84eeb
child 8260
2161475d9639
--- 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)

eric ide

mercurial